{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "9a08843b",
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import plotly.express as px\n",
    "from io_table import InputOutputTable\n",
    "\n",
    "data2020 = pd.read_excel(r'data/中国投入产出表/2020.xlsx', sheet_name=None, index_col=0)\n",
    "io20 = InputOutputTable(2020, '中国', data2020, '40行业')"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "17e96d86",
   "metadata": {},
   "source": [
    "# 第一象限"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "cb416c05",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>农林牧渔</th>\n",
       "      <th>采矿业</th>\n",
       "      <th>农副食品</th>\n",
       "      <th>食品饮料</th>\n",
       "      <th>烟草</th>\n",
       "      <th>纺织服装</th>\n",
       "      <th>木材家具</th>\n",
       "      <th>造纸印刷</th>\n",
       "      <th>文体工美</th>\n",
       "      <th>石油化工</th>\n",
       "      <th>...</th>\n",
       "      <th>金融</th>\n",
       "      <th>房地产</th>\n",
       "      <th>租赁和商务服务</th>\n",
       "      <th>科学技术研究</th>\n",
       "      <th>水利生态设施管理</th>\n",
       "      <th>居民服务其他服务</th>\n",
       "      <th>教育</th>\n",
       "      <th>卫生社会</th>\n",
       "      <th>文化体育娱乐</th>\n",
       "      <th>公共管理和社会组织</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>农林牧渔</th>\n",
       "      <td>18313.38</td>\n",
       "      <td>23.62</td>\n",
       "      <td>37251.17</td>\n",
       "      <td>8848.34</td>\n",
       "      <td>659.16</td>\n",
       "      <td>8200.62</td>\n",
       "      <td>3197.35</td>\n",
       "      <td>1728.76</td>\n",
       "      <td>447.50</td>\n",
       "      <td>1090.20</td>\n",
       "      <td>...</td>\n",
       "      <td>6.73</td>\n",
       "      <td>33.69</td>\n",
       "      <td>736.32</td>\n",
       "      <td>538.02</td>\n",
       "      <td>951.96</td>\n",
       "      <td>226.85</td>\n",
       "      <td>61.23</td>\n",
       "      <td>60.56</td>\n",
       "      <td>47.78</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>采矿业</th>\n",
       "      <td>60.40</td>\n",
       "      <td>7042.11</td>\n",
       "      <td>129.44</td>\n",
       "      <td>138.90</td>\n",
       "      <td>1.26</td>\n",
       "      <td>183.04</td>\n",
       "      <td>29.42</td>\n",
       "      <td>361.16</td>\n",
       "      <td>77.01</td>\n",
       "      <td>26055.39</td>\n",
       "      <td>...</td>\n",
       "      <td>1.80</td>\n",
       "      <td>6.37</td>\n",
       "      <td>0.17</td>\n",
       "      <td>74.46</td>\n",
       "      <td>9.19</td>\n",
       "      <td>33.05</td>\n",
       "      <td>61.08</td>\n",
       "      <td>39.93</td>\n",
       "      <td>4.88</td>\n",
       "      <td>58.88</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>农副食品</th>\n",
       "      <td>10715.93</td>\n",
       "      <td>0.00</td>\n",
       "      <td>9957.35</td>\n",
       "      <td>7344.73</td>\n",
       "      <td>0.00</td>\n",
       "      <td>1259.31</td>\n",
       "      <td>14.83</td>\n",
       "      <td>1.28</td>\n",
       "      <td>21.90</td>\n",
       "      <td>1619.55</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>857.75</td>\n",
       "      <td>100.57</td>\n",
       "      <td>85.02</td>\n",
       "      <td>134.63</td>\n",
       "      <td>649.22</td>\n",
       "      <td>178.29</td>\n",
       "      <td>64.41</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>食品饮料</th>\n",
       "      <td>78.28</td>\n",
       "      <td>82.88</td>\n",
       "      <td>1317.20</td>\n",
       "      <td>4912.84</td>\n",
       "      <td>47.19</td>\n",
       "      <td>102.14</td>\n",
       "      <td>57.78</td>\n",
       "      <td>49.60</td>\n",
       "      <td>34.85</td>\n",
       "      <td>872.89</td>\n",
       "      <td>...</td>\n",
       "      <td>201.51</td>\n",
       "      <td>282.64</td>\n",
       "      <td>458.46</td>\n",
       "      <td>608.31</td>\n",
       "      <td>93.61</td>\n",
       "      <td>512.62</td>\n",
       "      <td>358.22</td>\n",
       "      <td>475.17</td>\n",
       "      <td>727.17</td>\n",
       "      <td>404.94</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>烟草</th>\n",
       "      <td>24.27</td>\n",
       "      <td>62.13</td>\n",
       "      <td>32.04</td>\n",
       "      <td>16.10</td>\n",
       "      <td>1309.79</td>\n",
       "      <td>51.42</td>\n",
       "      <td>52.14</td>\n",
       "      <td>54.84</td>\n",
       "      <td>14.39</td>\n",
       "      <td>295.54</td>\n",
       "      <td>...</td>\n",
       "      <td>84.12</td>\n",
       "      <td>184.72</td>\n",
       "      <td>340.69</td>\n",
       "      <td>98.40</td>\n",
       "      <td>55.32</td>\n",
       "      <td>104.06</td>\n",
       "      <td>242.88</td>\n",
       "      <td>56.17</td>\n",
       "      <td>175.58</td>\n",
       "      <td>116.85</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>纺织服装</th>\n",
       "      <td>25.50</td>\n",
       "      <td>244.00</td>\n",
       "      <td>170.86</td>\n",
       "      <td>146.09</td>\n",
       "      <td>52.71</td>\n",
       "      <td>31484.62</td>\n",
       "      <td>810.96</td>\n",
       "      <td>136.42</td>\n",
       "      <td>1166.77</td>\n",
       "      <td>413.52</td>\n",
       "      <td>...</td>\n",
       "      <td>470.82</td>\n",
       "      <td>210.61</td>\n",
       "      <td>1668.06</td>\n",
       "      <td>413.14</td>\n",
       "      <td>144.49</td>\n",
       "      <td>250.34</td>\n",
       "      <td>154.98</td>\n",
       "      <td>956.07</td>\n",
       "      <td>473.42</td>\n",
       "      <td>2384.33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>木材家具</th>\n",
       "      <td>33.62</td>\n",
       "      <td>397.69</td>\n",
       "      <td>13.19</td>\n",
       "      <td>53.91</td>\n",
       "      <td>17.42</td>\n",
       "      <td>91.85</td>\n",
       "      <td>8178.07</td>\n",
       "      <td>269.84</td>\n",
       "      <td>560.59</td>\n",
       "      <td>128.34</td>\n",
       "      <td>...</td>\n",
       "      <td>47.47</td>\n",
       "      <td>54.65</td>\n",
       "      <td>59.98</td>\n",
       "      <td>45.17</td>\n",
       "      <td>27.83</td>\n",
       "      <td>63.59</td>\n",
       "      <td>34.29</td>\n",
       "      <td>8.69</td>\n",
       "      <td>31.97</td>\n",
       "      <td>369.31</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>造纸印刷</th>\n",
       "      <td>18.94</td>\n",
       "      <td>23.07</td>\n",
       "      <td>226.28</td>\n",
       "      <td>660.93</td>\n",
       "      <td>363.07</td>\n",
       "      <td>309.76</td>\n",
       "      <td>208.26</td>\n",
       "      <td>8216.68</td>\n",
       "      <td>854.48</td>\n",
       "      <td>305.15</td>\n",
       "      <td>...</td>\n",
       "      <td>1045.75</td>\n",
       "      <td>285.22</td>\n",
       "      <td>6029.36</td>\n",
       "      <td>591.91</td>\n",
       "      <td>11.88</td>\n",
       "      <td>44.61</td>\n",
       "      <td>792.68</td>\n",
       "      <td>18.68</td>\n",
       "      <td>588.66</td>\n",
       "      <td>1200.35</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>文体工美</th>\n",
       "      <td>83.63</td>\n",
       "      <td>14.32</td>\n",
       "      <td>16.55</td>\n",
       "      <td>52.66</td>\n",
       "      <td>1.96</td>\n",
       "      <td>50.17</td>\n",
       "      <td>43.09</td>\n",
       "      <td>51.28</td>\n",
       "      <td>1143.40</td>\n",
       "      <td>65.48</td>\n",
       "      <td>...</td>\n",
       "      <td>958.11</td>\n",
       "      <td>249.33</td>\n",
       "      <td>921.68</td>\n",
       "      <td>219.98</td>\n",
       "      <td>92.60</td>\n",
       "      <td>131.36</td>\n",
       "      <td>471.94</td>\n",
       "      <td>24.62</td>\n",
       "      <td>156.74</td>\n",
       "      <td>685.37</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>石油化工</th>\n",
       "      <td>8092.47</td>\n",
       "      <td>2732.18</td>\n",
       "      <td>108.06</td>\n",
       "      <td>371.29</td>\n",
       "      <td>59.63</td>\n",
       "      <td>1611.15</td>\n",
       "      <td>1706.82</td>\n",
       "      <td>2302.65</td>\n",
       "      <td>1085.99</td>\n",
       "      <td>35244.61</td>\n",
       "      <td>...</td>\n",
       "      <td>403.09</td>\n",
       "      <td>186.73</td>\n",
       "      <td>2355.94</td>\n",
       "      <td>4833.67</td>\n",
       "      <td>757.85</td>\n",
       "      <td>1474.11</td>\n",
       "      <td>1030.34</td>\n",
       "      <td>86.07</td>\n",
       "      <td>207.88</td>\n",
       "      <td>683.38</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>医药制品</th>\n",
       "      <td>607.10</td>\n",
       "      <td>6.75</td>\n",
       "      <td>32.23</td>\n",
       "      <td>48.86</td>\n",
       "      <td>0.11</td>\n",
       "      <td>8.81</td>\n",
       "      <td>0.28</td>\n",
       "      <td>65.19</td>\n",
       "      <td>0.21</td>\n",
       "      <td>119.24</td>\n",
       "      <td>...</td>\n",
       "      <td>7.16</td>\n",
       "      <td>1.52</td>\n",
       "      <td>17.85</td>\n",
       "      <td>365.31</td>\n",
       "      <td>8.57</td>\n",
       "      <td>18.43</td>\n",
       "      <td>71.04</td>\n",
       "      <td>16384.60</td>\n",
       "      <td>2.46</td>\n",
       "      <td>16.25</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>化学纤维</th>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>69.80</td>\n",
       "      <td>3960.24</td>\n",
       "      <td>15.92</td>\n",
       "      <td>16.68</td>\n",
       "      <td>192.60</td>\n",
       "      <td>77.94</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>30.52</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>橡胶塑料</th>\n",
       "      <td>867.46</td>\n",
       "      <td>236.24</td>\n",
       "      <td>369.43</td>\n",
       "      <td>777.18</td>\n",
       "      <td>37.51</td>\n",
       "      <td>1098.02</td>\n",
       "      <td>391.43</td>\n",
       "      <td>625.70</td>\n",
       "      <td>847.66</td>\n",
       "      <td>1745.61</td>\n",
       "      <td>...</td>\n",
       "      <td>8.44</td>\n",
       "      <td>38.11</td>\n",
       "      <td>323.55</td>\n",
       "      <td>271.77</td>\n",
       "      <td>184.12</td>\n",
       "      <td>272.14</td>\n",
       "      <td>5.64</td>\n",
       "      <td>54.21</td>\n",
       "      <td>25.99</td>\n",
       "      <td>22.98</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>非金属制品</th>\n",
       "      <td>52.77</td>\n",
       "      <td>298.76</td>\n",
       "      <td>30.06</td>\n",
       "      <td>449.89</td>\n",
       "      <td>8.86</td>\n",
       "      <td>57.12</td>\n",
       "      <td>192.12</td>\n",
       "      <td>20.53</td>\n",
       "      <td>70.46</td>\n",
       "      <td>684.74</td>\n",
       "      <td>...</td>\n",
       "      <td>2.37</td>\n",
       "      <td>3.27</td>\n",
       "      <td>26.05</td>\n",
       "      <td>246.72</td>\n",
       "      <td>81.95</td>\n",
       "      <td>9.58</td>\n",
       "      <td>113.06</td>\n",
       "      <td>32.61</td>\n",
       "      <td>0.48</td>\n",
       "      <td>1.25</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>黑色金属冶炼压延</th>\n",
       "      <td>23.15</td>\n",
       "      <td>894.62</td>\n",
       "      <td>14.82</td>\n",
       "      <td>12.40</td>\n",
       "      <td>0.01</td>\n",
       "      <td>38.27</td>\n",
       "      <td>236.81</td>\n",
       "      <td>16.59</td>\n",
       "      <td>195.17</td>\n",
       "      <td>88.59</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.19</td>\n",
       "      <td>0.12</td>\n",
       "      <td>50.93</td>\n",
       "      <td>14.05</td>\n",
       "      <td>0.84</td>\n",
       "      <td>2.69</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>有色金属冶炼压延</th>\n",
       "      <td>0.89</td>\n",
       "      <td>62.57</td>\n",
       "      <td>1.15</td>\n",
       "      <td>9.77</td>\n",
       "      <td>0.00</td>\n",
       "      <td>22.05</td>\n",
       "      <td>90.63</td>\n",
       "      <td>103.54</td>\n",
       "      <td>1803.57</td>\n",
       "      <td>862.70</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.17</td>\n",
       "      <td>26.54</td>\n",
       "      <td>0.00</td>\n",
       "      <td>14.64</td>\n",
       "      <td>4.54</td>\n",
       "      <td>0.11</td>\n",
       "      <td>0.03</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>金属制品</th>\n",
       "      <td>82.32</td>\n",
       "      <td>1165.35</td>\n",
       "      <td>63.81</td>\n",
       "      <td>266.83</td>\n",
       "      <td>21.76</td>\n",
       "      <td>216.44</td>\n",
       "      <td>616.09</td>\n",
       "      <td>81.74</td>\n",
       "      <td>278.44</td>\n",
       "      <td>344.11</td>\n",
       "      <td>...</td>\n",
       "      <td>8.68</td>\n",
       "      <td>119.66</td>\n",
       "      <td>2511.39</td>\n",
       "      <td>1903.76</td>\n",
       "      <td>111.14</td>\n",
       "      <td>330.25</td>\n",
       "      <td>75.89</td>\n",
       "      <td>5.43</td>\n",
       "      <td>15.27</td>\n",
       "      <td>101.11</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>通用设备</th>\n",
       "      <td>80.62</td>\n",
       "      <td>619.31</td>\n",
       "      <td>70.90</td>\n",
       "      <td>66.62</td>\n",
       "      <td>7.95</td>\n",
       "      <td>182.94</td>\n",
       "      <td>127.85</td>\n",
       "      <td>55.53</td>\n",
       "      <td>59.42</td>\n",
       "      <td>686.87</td>\n",
       "      <td>...</td>\n",
       "      <td>64.47</td>\n",
       "      <td>30.83</td>\n",
       "      <td>29.69</td>\n",
       "      <td>93.76</td>\n",
       "      <td>25.35</td>\n",
       "      <td>13.11</td>\n",
       "      <td>64.95</td>\n",
       "      <td>10.87</td>\n",
       "      <td>5.18</td>\n",
       "      <td>12.14</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>专用设备</th>\n",
       "      <td>944.21</td>\n",
       "      <td>1449.26</td>\n",
       "      <td>14.37</td>\n",
       "      <td>33.95</td>\n",
       "      <td>8.82</td>\n",
       "      <td>122.21</td>\n",
       "      <td>80.71</td>\n",
       "      <td>176.78</td>\n",
       "      <td>23.80</td>\n",
       "      <td>403.35</td>\n",
       "      <td>...</td>\n",
       "      <td>92.36</td>\n",
       "      <td>0.83</td>\n",
       "      <td>52.34</td>\n",
       "      <td>20.06</td>\n",
       "      <td>23.58</td>\n",
       "      <td>16.01</td>\n",
       "      <td>13.35</td>\n",
       "      <td>1668.12</td>\n",
       "      <td>1.13</td>\n",
       "      <td>2.90</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>汽车及零部件制造</th>\n",
       "      <td>140.89</td>\n",
       "      <td>139.01</td>\n",
       "      <td>10.64</td>\n",
       "      <td>6.65</td>\n",
       "      <td>0.18</td>\n",
       "      <td>25.36</td>\n",
       "      <td>11.90</td>\n",
       "      <td>2.27</td>\n",
       "      <td>16.83</td>\n",
       "      <td>36.46</td>\n",
       "      <td>...</td>\n",
       "      <td>28.91</td>\n",
       "      <td>2.83</td>\n",
       "      <td>3233.42</td>\n",
       "      <td>378.39</td>\n",
       "      <td>175.72</td>\n",
       "      <td>806.18</td>\n",
       "      <td>11.51</td>\n",
       "      <td>4.74</td>\n",
       "      <td>9.11</td>\n",
       "      <td>232.01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>其他交通设备</th>\n",
       "      <td>163.37</td>\n",
       "      <td>21.33</td>\n",
       "      <td>2.28</td>\n",
       "      <td>4.06</td>\n",
       "      <td>0.01</td>\n",
       "      <td>6.95</td>\n",
       "      <td>6.98</td>\n",
       "      <td>0.52</td>\n",
       "      <td>3.30</td>\n",
       "      <td>19.53</td>\n",
       "      <td>...</td>\n",
       "      <td>3.79</td>\n",
       "      <td>0.21</td>\n",
       "      <td>3.08</td>\n",
       "      <td>25.71</td>\n",
       "      <td>14.58</td>\n",
       "      <td>454.22</td>\n",
       "      <td>1.82</td>\n",
       "      <td>21.17</td>\n",
       "      <td>1.88</td>\n",
       "      <td>48.50</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>电气机械</th>\n",
       "      <td>19.77</td>\n",
       "      <td>207.27</td>\n",
       "      <td>23.14</td>\n",
       "      <td>35.93</td>\n",
       "      <td>6.26</td>\n",
       "      <td>49.52</td>\n",
       "      <td>28.66</td>\n",
       "      <td>14.27</td>\n",
       "      <td>132.36</td>\n",
       "      <td>97.40</td>\n",
       "      <td>...</td>\n",
       "      <td>11.04</td>\n",
       "      <td>5.81</td>\n",
       "      <td>1274.64</td>\n",
       "      <td>1718.95</td>\n",
       "      <td>145.34</td>\n",
       "      <td>325.48</td>\n",
       "      <td>9.41</td>\n",
       "      <td>48.15</td>\n",
       "      <td>10.49</td>\n",
       "      <td>181.44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>计算机通信设备</th>\n",
       "      <td>29.31</td>\n",
       "      <td>38.73</td>\n",
       "      <td>22.62</td>\n",
       "      <td>31.72</td>\n",
       "      <td>2.36</td>\n",
       "      <td>21.74</td>\n",
       "      <td>10.12</td>\n",
       "      <td>43.50</td>\n",
       "      <td>272.80</td>\n",
       "      <td>67.36</td>\n",
       "      <td>...</td>\n",
       "      <td>115.29</td>\n",
       "      <td>43.25</td>\n",
       "      <td>2211.79</td>\n",
       "      <td>3302.49</td>\n",
       "      <td>147.52</td>\n",
       "      <td>1173.87</td>\n",
       "      <td>86.29</td>\n",
       "      <td>90.46</td>\n",
       "      <td>80.34</td>\n",
       "      <td>425.98</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>其他制造业</th>\n",
       "      <td>20.32</td>\n",
       "      <td>224.88</td>\n",
       "      <td>49.41</td>\n",
       "      <td>26.80</td>\n",
       "      <td>6.91</td>\n",
       "      <td>155.75</td>\n",
       "      <td>25.59</td>\n",
       "      <td>1291.73</td>\n",
       "      <td>34.05</td>\n",
       "      <td>361.39</td>\n",
       "      <td>...</td>\n",
       "      <td>8.50</td>\n",
       "      <td>130.14</td>\n",
       "      <td>913.34</td>\n",
       "      <td>3847.83</td>\n",
       "      <td>136.29</td>\n",
       "      <td>320.76</td>\n",
       "      <td>525.22</td>\n",
       "      <td>53.13</td>\n",
       "      <td>94.00</td>\n",
       "      <td>82.71</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>水电燃</th>\n",
       "      <td>1083.26</td>\n",
       "      <td>2774.88</td>\n",
       "      <td>515.76</td>\n",
       "      <td>444.55</td>\n",
       "      <td>35.43</td>\n",
       "      <td>973.97</td>\n",
       "      <td>534.32</td>\n",
       "      <td>653.71</td>\n",
       "      <td>166.79</td>\n",
       "      <td>5125.24</td>\n",
       "      <td>...</td>\n",
       "      <td>473.97</td>\n",
       "      <td>711.13</td>\n",
       "      <td>436.60</td>\n",
       "      <td>661.10</td>\n",
       "      <td>348.13</td>\n",
       "      <td>495.99</td>\n",
       "      <td>441.18</td>\n",
       "      <td>383.23</td>\n",
       "      <td>212.01</td>\n",
       "      <td>795.66</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>建筑业</th>\n",
       "      <td>76.79</td>\n",
       "      <td>21.07</td>\n",
       "      <td>7.40</td>\n",
       "      <td>11.22</td>\n",
       "      <td>2.90</td>\n",
       "      <td>22.67</td>\n",
       "      <td>13.26</td>\n",
       "      <td>7.65</td>\n",
       "      <td>2.94</td>\n",
       "      <td>37.30</td>\n",
       "      <td>...</td>\n",
       "      <td>249.00</td>\n",
       "      <td>1419.39</td>\n",
       "      <td>44.58</td>\n",
       "      <td>93.90</td>\n",
       "      <td>105.32</td>\n",
       "      <td>52.89</td>\n",
       "      <td>331.95</td>\n",
       "      <td>113.01</td>\n",
       "      <td>99.36</td>\n",
       "      <td>976.47</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>批发零售</th>\n",
       "      <td>3244.53</td>\n",
       "      <td>1176.14</td>\n",
       "      <td>4752.51</td>\n",
       "      <td>2884.08</td>\n",
       "      <td>532.20</td>\n",
       "      <td>4941.83</td>\n",
       "      <td>2395.26</td>\n",
       "      <td>1858.49</td>\n",
       "      <td>918.96</td>\n",
       "      <td>4409.44</td>\n",
       "      <td>...</td>\n",
       "      <td>573.56</td>\n",
       "      <td>331.15</td>\n",
       "      <td>3486.81</td>\n",
       "      <td>2120.84</td>\n",
       "      <td>348.51</td>\n",
       "      <td>848.31</td>\n",
       "      <td>637.14</td>\n",
       "      <td>3432.06</td>\n",
       "      <td>483.82</td>\n",
       "      <td>1154.61</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>交通运输</th>\n",
       "      <td>2550.28</td>\n",
       "      <td>1029.43</td>\n",
       "      <td>1955.16</td>\n",
       "      <td>1226.19</td>\n",
       "      <td>175.48</td>\n",
       "      <td>3065.44</td>\n",
       "      <td>898.21</td>\n",
       "      <td>695.34</td>\n",
       "      <td>490.83</td>\n",
       "      <td>3995.09</td>\n",
       "      <td>...</td>\n",
       "      <td>1354.23</td>\n",
       "      <td>427.90</td>\n",
       "      <td>5753.96</td>\n",
       "      <td>2814.86</td>\n",
       "      <td>441.83</td>\n",
       "      <td>746.59</td>\n",
       "      <td>1217.07</td>\n",
       "      <td>1601.27</td>\n",
       "      <td>521.67</td>\n",
       "      <td>2621.85</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>餐饮住宿</th>\n",
       "      <td>236.56</td>\n",
       "      <td>191.32</td>\n",
       "      <td>181.35</td>\n",
       "      <td>273.20</td>\n",
       "      <td>53.61</td>\n",
       "      <td>238.93</td>\n",
       "      <td>113.37</td>\n",
       "      <td>139.96</td>\n",
       "      <td>55.47</td>\n",
       "      <td>406.35</td>\n",
       "      <td>...</td>\n",
       "      <td>2845.18</td>\n",
       "      <td>418.88</td>\n",
       "      <td>4605.07</td>\n",
       "      <td>2734.78</td>\n",
       "      <td>137.17</td>\n",
       "      <td>336.22</td>\n",
       "      <td>1268.26</td>\n",
       "      <td>242.07</td>\n",
       "      <td>510.45</td>\n",
       "      <td>3634.97</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>软件和信息技术服务业</th>\n",
       "      <td>238.04</td>\n",
       "      <td>116.43</td>\n",
       "      <td>110.05</td>\n",
       "      <td>172.58</td>\n",
       "      <td>15.91</td>\n",
       "      <td>279.53</td>\n",
       "      <td>70.22</td>\n",
       "      <td>77.41</td>\n",
       "      <td>139.44</td>\n",
       "      <td>309.04</td>\n",
       "      <td>...</td>\n",
       "      <td>4150.22</td>\n",
       "      <td>870.77</td>\n",
       "      <td>1442.18</td>\n",
       "      <td>1445.37</td>\n",
       "      <td>186.44</td>\n",
       "      <td>180.51</td>\n",
       "      <td>1076.06</td>\n",
       "      <td>1064.97</td>\n",
       "      <td>289.56</td>\n",
       "      <td>4910.93</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>金融</th>\n",
       "      <td>1576.68</td>\n",
       "      <td>2033.79</td>\n",
       "      <td>313.12</td>\n",
       "      <td>301.02</td>\n",
       "      <td>29.56</td>\n",
       "      <td>624.99</td>\n",
       "      <td>248.85</td>\n",
       "      <td>503.47</td>\n",
       "      <td>128.81</td>\n",
       "      <td>1754.35</td>\n",
       "      <td>...</td>\n",
       "      <td>8811.95</td>\n",
       "      <td>12066.76</td>\n",
       "      <td>6617.82</td>\n",
       "      <td>2262.51</td>\n",
       "      <td>495.49</td>\n",
       "      <td>382.01</td>\n",
       "      <td>1420.20</td>\n",
       "      <td>435.21</td>\n",
       "      <td>387.01</td>\n",
       "      <td>1920.39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>房地产</th>\n",
       "      <td>2.01</td>\n",
       "      <td>22.81</td>\n",
       "      <td>9.49</td>\n",
       "      <td>27.00</td>\n",
       "      <td>0.39</td>\n",
       "      <td>28.89</td>\n",
       "      <td>23.15</td>\n",
       "      <td>11.16</td>\n",
       "      <td>7.31</td>\n",
       "      <td>16.37</td>\n",
       "      <td>...</td>\n",
       "      <td>7470.48</td>\n",
       "      <td>4413.35</td>\n",
       "      <td>5801.35</td>\n",
       "      <td>1249.75</td>\n",
       "      <td>133.23</td>\n",
       "      <td>3052.34</td>\n",
       "      <td>2160.51</td>\n",
       "      <td>763.30</td>\n",
       "      <td>610.64</td>\n",
       "      <td>1539.37</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>租赁和商务服务</th>\n",
       "      <td>312.99</td>\n",
       "      <td>1389.70</td>\n",
       "      <td>629.63</td>\n",
       "      <td>2194.79</td>\n",
       "      <td>120.95</td>\n",
       "      <td>1313.71</td>\n",
       "      <td>319.21</td>\n",
       "      <td>374.71</td>\n",
       "      <td>634.10</td>\n",
       "      <td>1737.63</td>\n",
       "      <td>...</td>\n",
       "      <td>7704.27</td>\n",
       "      <td>6562.79</td>\n",
       "      <td>10460.90</td>\n",
       "      <td>3630.03</td>\n",
       "      <td>371.96</td>\n",
       "      <td>721.52</td>\n",
       "      <td>570.83</td>\n",
       "      <td>286.15</td>\n",
       "      <td>721.31</td>\n",
       "      <td>2427.33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>科学技术研究</th>\n",
       "      <td>818.37</td>\n",
       "      <td>487.63</td>\n",
       "      <td>44.76</td>\n",
       "      <td>107.92</td>\n",
       "      <td>14.97</td>\n",
       "      <td>147.17</td>\n",
       "      <td>95.35</td>\n",
       "      <td>118.39</td>\n",
       "      <td>16.01</td>\n",
       "      <td>709.13</td>\n",
       "      <td>...</td>\n",
       "      <td>84.11</td>\n",
       "      <td>88.68</td>\n",
       "      <td>12.34</td>\n",
       "      <td>8727.91</td>\n",
       "      <td>33.06</td>\n",
       "      <td>1.41</td>\n",
       "      <td>137.36</td>\n",
       "      <td>25.09</td>\n",
       "      <td>3.18</td>\n",
       "      <td>35.94</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>水利生态设施管理</th>\n",
       "      <td>180.47</td>\n",
       "      <td>47.43</td>\n",
       "      <td>12.68</td>\n",
       "      <td>28.05</td>\n",
       "      <td>7.92</td>\n",
       "      <td>78.16</td>\n",
       "      <td>12.92</td>\n",
       "      <td>78.02</td>\n",
       "      <td>3.01</td>\n",
       "      <td>72.51</td>\n",
       "      <td>...</td>\n",
       "      <td>190.20</td>\n",
       "      <td>42.95</td>\n",
       "      <td>374.08</td>\n",
       "      <td>134.15</td>\n",
       "      <td>356.27</td>\n",
       "      <td>53.12</td>\n",
       "      <td>57.32</td>\n",
       "      <td>42.45</td>\n",
       "      <td>34.51</td>\n",
       "      <td>169.09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>居民服务其他服务</th>\n",
       "      <td>116.24</td>\n",
       "      <td>207.96</td>\n",
       "      <td>38.26</td>\n",
       "      <td>130.21</td>\n",
       "      <td>11.73</td>\n",
       "      <td>126.63</td>\n",
       "      <td>74.89</td>\n",
       "      <td>94.41</td>\n",
       "      <td>26.69</td>\n",
       "      <td>248.99</td>\n",
       "      <td>...</td>\n",
       "      <td>368.66</td>\n",
       "      <td>181.72</td>\n",
       "      <td>755.31</td>\n",
       "      <td>958.95</td>\n",
       "      <td>439.70</td>\n",
       "      <td>547.84</td>\n",
       "      <td>638.77</td>\n",
       "      <td>392.64</td>\n",
       "      <td>216.06</td>\n",
       "      <td>1673.90</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>教育</th>\n",
       "      <td>16.71</td>\n",
       "      <td>12.21</td>\n",
       "      <td>5.57</td>\n",
       "      <td>7.09</td>\n",
       "      <td>1.58</td>\n",
       "      <td>10.74</td>\n",
       "      <td>6.41</td>\n",
       "      <td>2.73</td>\n",
       "      <td>1.69</td>\n",
       "      <td>13.30</td>\n",
       "      <td>...</td>\n",
       "      <td>310.21</td>\n",
       "      <td>27.46</td>\n",
       "      <td>57.69</td>\n",
       "      <td>63.55</td>\n",
       "      <td>8.53</td>\n",
       "      <td>18.91</td>\n",
       "      <td>769.60</td>\n",
       "      <td>87.01</td>\n",
       "      <td>24.52</td>\n",
       "      <td>741.43</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>卫生社会</th>\n",
       "      <td>12.50</td>\n",
       "      <td>34.63</td>\n",
       "      <td>8.05</td>\n",
       "      <td>5.14</td>\n",
       "      <td>1.20</td>\n",
       "      <td>21.32</td>\n",
       "      <td>8.32</td>\n",
       "      <td>11.08</td>\n",
       "      <td>1.99</td>\n",
       "      <td>103.22</td>\n",
       "      <td>...</td>\n",
       "      <td>38.84</td>\n",
       "      <td>1.25</td>\n",
       "      <td>5.89</td>\n",
       "      <td>15.01</td>\n",
       "      <td>7.04</td>\n",
       "      <td>8.03</td>\n",
       "      <td>22.83</td>\n",
       "      <td>302.88</td>\n",
       "      <td>8.56</td>\n",
       "      <td>252.25</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>文化体育娱乐</th>\n",
       "      <td>10.10</td>\n",
       "      <td>58.60</td>\n",
       "      <td>29.84</td>\n",
       "      <td>49.59</td>\n",
       "      <td>9.84</td>\n",
       "      <td>88.49</td>\n",
       "      <td>29.38</td>\n",
       "      <td>21.20</td>\n",
       "      <td>9.65</td>\n",
       "      <td>92.01</td>\n",
       "      <td>...</td>\n",
       "      <td>1068.92</td>\n",
       "      <td>131.77</td>\n",
       "      <td>395.46</td>\n",
       "      <td>244.73</td>\n",
       "      <td>41.70</td>\n",
       "      <td>113.56</td>\n",
       "      <td>239.34</td>\n",
       "      <td>34.45</td>\n",
       "      <td>923.28</td>\n",
       "      <td>656.78</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>公共管理和社会组织</th>\n",
       "      <td>39.48</td>\n",
       "      <td>6.18</td>\n",
       "      <td>8.80</td>\n",
       "      <td>8.91</td>\n",
       "      <td>1.09</td>\n",
       "      <td>19.10</td>\n",
       "      <td>4.24</td>\n",
       "      <td>5.01</td>\n",
       "      <td>3.33</td>\n",
       "      <td>18.04</td>\n",
       "      <td>...</td>\n",
       "      <td>55.66</td>\n",
       "      <td>129.99</td>\n",
       "      <td>127.67</td>\n",
       "      <td>63.49</td>\n",
       "      <td>8.36</td>\n",
       "      <td>16.11</td>\n",
       "      <td>88.86</td>\n",
       "      <td>12.24</td>\n",
       "      <td>12.45</td>\n",
       "      <td>2070.83</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>40 rows × 40 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                农林牧渔      采矿业      农副食品     食品饮料       烟草      纺织服装     木材家具  \\\n",
       "农林牧渔        18313.38    23.62  37251.17  8848.34   659.16   8200.62  3197.35   \n",
       "采矿业            60.40  7042.11    129.44   138.90     1.26    183.04    29.42   \n",
       "农副食品        10715.93     0.00   9957.35  7344.73     0.00   1259.31    14.83   \n",
       "食品饮料           78.28    82.88   1317.20  4912.84    47.19    102.14    57.78   \n",
       "烟草             24.27    62.13     32.04    16.10  1309.79     51.42    52.14   \n",
       "纺织服装           25.50   244.00    170.86   146.09    52.71  31484.62   810.96   \n",
       "木材家具           33.62   397.69     13.19    53.91    17.42     91.85  8178.07   \n",
       "造纸印刷           18.94    23.07    226.28   660.93   363.07    309.76   208.26   \n",
       "文体工美           83.63    14.32     16.55    52.66     1.96     50.17    43.09   \n",
       "石油化工         8092.47  2732.18    108.06   371.29    59.63   1611.15  1706.82   \n",
       "医药制品          607.10     6.75     32.23    48.86     0.11      8.81     0.28   \n",
       "化学纤维            0.00     0.00      0.00     0.00    69.80   3960.24    15.92   \n",
       "橡胶塑料          867.46   236.24    369.43   777.18    37.51   1098.02   391.43   \n",
       "非金属制品          52.77   298.76     30.06   449.89     8.86     57.12   192.12   \n",
       "黑色金属冶炼压延       23.15   894.62     14.82    12.40     0.01     38.27   236.81   \n",
       "有色金属冶炼压延        0.89    62.57      1.15     9.77     0.00     22.05    90.63   \n",
       "金属制品           82.32  1165.35     63.81   266.83    21.76    216.44   616.09   \n",
       "通用设备           80.62   619.31     70.90    66.62     7.95    182.94   127.85   \n",
       "专用设备          944.21  1449.26     14.37    33.95     8.82    122.21    80.71   \n",
       "汽车及零部件制造      140.89   139.01     10.64     6.65     0.18     25.36    11.90   \n",
       "其他交通设备        163.37    21.33      2.28     4.06     0.01      6.95     6.98   \n",
       "电气机械           19.77   207.27     23.14    35.93     6.26     49.52    28.66   \n",
       "计算机通信设备        29.31    38.73     22.62    31.72     2.36     21.74    10.12   \n",
       "其他制造业          20.32   224.88     49.41    26.80     6.91    155.75    25.59   \n",
       "水电燃          1083.26  2774.88    515.76   444.55    35.43    973.97   534.32   \n",
       "建筑业            76.79    21.07      7.40    11.22     2.90     22.67    13.26   \n",
       "批发零售         3244.53  1176.14   4752.51  2884.08   532.20   4941.83  2395.26   \n",
       "交通运输         2550.28  1029.43   1955.16  1226.19   175.48   3065.44   898.21   \n",
       "餐饮住宿          236.56   191.32    181.35   273.20    53.61    238.93   113.37   \n",
       "软件和信息技术服务业    238.04   116.43    110.05   172.58    15.91    279.53    70.22   \n",
       "金融           1576.68  2033.79    313.12   301.02    29.56    624.99   248.85   \n",
       "房地产             2.01    22.81      9.49    27.00     0.39     28.89    23.15   \n",
       "租赁和商务服务       312.99  1389.70    629.63  2194.79   120.95   1313.71   319.21   \n",
       "科学技术研究        818.37   487.63     44.76   107.92    14.97    147.17    95.35   \n",
       "水利生态设施管理      180.47    47.43     12.68    28.05     7.92     78.16    12.92   \n",
       "居民服务其他服务      116.24   207.96     38.26   130.21    11.73    126.63    74.89   \n",
       "教育             16.71    12.21      5.57     7.09     1.58     10.74     6.41   \n",
       "卫生社会           12.50    34.63      8.05     5.14     1.20     21.32     8.32   \n",
       "文化体育娱乐         10.10    58.60     29.84    49.59     9.84     88.49    29.38   \n",
       "公共管理和社会组织      39.48     6.18      8.80     8.91     1.09     19.10     4.24   \n",
       "\n",
       "               造纸印刷     文体工美      石油化工  ...       金融       房地产   租赁和商务服务  \\\n",
       "农林牧渔        1728.76   447.50   1090.20  ...     6.73     33.69    736.32   \n",
       "采矿业          361.16    77.01  26055.39  ...     1.80      6.37      0.17   \n",
       "农副食品           1.28    21.90   1619.55  ...     0.00      0.00    857.75   \n",
       "食品饮料          49.60    34.85    872.89  ...   201.51    282.64    458.46   \n",
       "烟草            54.84    14.39    295.54  ...    84.12    184.72    340.69   \n",
       "纺织服装         136.42  1166.77    413.52  ...   470.82    210.61   1668.06   \n",
       "木材家具         269.84   560.59    128.34  ...    47.47     54.65     59.98   \n",
       "造纸印刷        8216.68   854.48    305.15  ...  1045.75    285.22   6029.36   \n",
       "文体工美          51.28  1143.40     65.48  ...   958.11    249.33    921.68   \n",
       "石油化工        2302.65  1085.99  35244.61  ...   403.09    186.73   2355.94   \n",
       "医药制品          65.19     0.21    119.24  ...     7.16      1.52     17.85   \n",
       "化学纤维          16.68   192.60     77.94  ...     0.00      0.00      0.00   \n",
       "橡胶塑料         625.70   847.66   1745.61  ...     8.44     38.11    323.55   \n",
       "非金属制品         20.53    70.46    684.74  ...     2.37      3.27     26.05   \n",
       "黑色金属冶炼压延      16.59   195.17     88.59  ...     0.00      0.19      0.12   \n",
       "有色金属冶炼压延     103.54  1803.57    862.70  ...     0.00      0.00      0.17   \n",
       "金属制品          81.74   278.44    344.11  ...     8.68    119.66   2511.39   \n",
       "通用设备          55.53    59.42    686.87  ...    64.47     30.83     29.69   \n",
       "专用设备         176.78    23.80    403.35  ...    92.36      0.83     52.34   \n",
       "汽车及零部件制造       2.27    16.83     36.46  ...    28.91      2.83   3233.42   \n",
       "其他交通设备         0.52     3.30     19.53  ...     3.79      0.21      3.08   \n",
       "电气机械          14.27   132.36     97.40  ...    11.04      5.81   1274.64   \n",
       "计算机通信设备       43.50   272.80     67.36  ...   115.29     43.25   2211.79   \n",
       "其他制造业       1291.73    34.05    361.39  ...     8.50    130.14    913.34   \n",
       "水电燃          653.71   166.79   5125.24  ...   473.97    711.13    436.60   \n",
       "建筑业            7.65     2.94     37.30  ...   249.00   1419.39     44.58   \n",
       "批发零售        1858.49   918.96   4409.44  ...   573.56    331.15   3486.81   \n",
       "交通运输         695.34   490.83   3995.09  ...  1354.23    427.90   5753.96   \n",
       "餐饮住宿         139.96    55.47    406.35  ...  2845.18    418.88   4605.07   \n",
       "软件和信息技术服务业    77.41   139.44    309.04  ...  4150.22    870.77   1442.18   \n",
       "金融           503.47   128.81   1754.35  ...  8811.95  12066.76   6617.82   \n",
       "房地产           11.16     7.31     16.37  ...  7470.48   4413.35   5801.35   \n",
       "租赁和商务服务      374.71   634.10   1737.63  ...  7704.27   6562.79  10460.90   \n",
       "科学技术研究       118.39    16.01    709.13  ...    84.11     88.68     12.34   \n",
       "水利生态设施管理      78.02     3.01     72.51  ...   190.20     42.95    374.08   \n",
       "居民服务其他服务      94.41    26.69    248.99  ...   368.66    181.72    755.31   \n",
       "教育             2.73     1.69     13.30  ...   310.21     27.46     57.69   \n",
       "卫生社会          11.08     1.99    103.22  ...    38.84      1.25      5.89   \n",
       "文化体育娱乐        21.20     9.65     92.01  ...  1068.92    131.77    395.46   \n",
       "公共管理和社会组织      5.01     3.33     18.04  ...    55.66    129.99    127.67   \n",
       "\n",
       "             科学技术研究  水利生态设施管理  居民服务其他服务       教育      卫生社会  文化体育娱乐  公共管理和社会组织  \n",
       "农林牧渔         538.02    951.96    226.85    61.23     60.56   47.78       0.00  \n",
       "采矿业           74.46      9.19     33.05    61.08     39.93    4.88      58.88  \n",
       "农副食品         100.57     85.02    134.63   649.22    178.29   64.41       0.00  \n",
       "食品饮料         608.31     93.61    512.62   358.22    475.17  727.17     404.94  \n",
       "烟草            98.40     55.32    104.06   242.88     56.17  175.58     116.85  \n",
       "纺织服装         413.14    144.49    250.34   154.98    956.07  473.42    2384.33  \n",
       "木材家具          45.17     27.83     63.59    34.29      8.69   31.97     369.31  \n",
       "造纸印刷         591.91     11.88     44.61   792.68     18.68  588.66    1200.35  \n",
       "文体工美         219.98     92.60    131.36   471.94     24.62  156.74     685.37  \n",
       "石油化工        4833.67    757.85   1474.11  1030.34     86.07  207.88     683.38  \n",
       "医药制品         365.31      8.57     18.43    71.04  16384.60    2.46      16.25  \n",
       "化学纤维          30.52      0.00      0.00     0.00      0.00    0.00       0.00  \n",
       "橡胶塑料         271.77    184.12    272.14     5.64     54.21   25.99      22.98  \n",
       "非金属制品        246.72     81.95      9.58   113.06     32.61    0.48       1.25  \n",
       "黑色金属冶炼压延      50.93     14.05      0.84     2.69      0.05    0.08       0.00  \n",
       "有色金属冶炼压延      26.54      0.00     14.64     4.54      0.11    0.03       0.00  \n",
       "金属制品        1903.76    111.14    330.25    75.89      5.43   15.27     101.11  \n",
       "通用设备          93.76     25.35     13.11    64.95     10.87    5.18      12.14  \n",
       "专用设备          20.06     23.58     16.01    13.35   1668.12    1.13       2.90  \n",
       "汽车及零部件制造     378.39    175.72    806.18    11.51      4.74    9.11     232.01  \n",
       "其他交通设备        25.71     14.58    454.22     1.82     21.17    1.88      48.50  \n",
       "电气机械        1718.95    145.34    325.48     9.41     48.15   10.49     181.44  \n",
       "计算机通信设备     3302.49    147.52   1173.87    86.29     90.46   80.34     425.98  \n",
       "其他制造业       3847.83    136.29    320.76   525.22     53.13   94.00      82.71  \n",
       "水电燃          661.10    348.13    495.99   441.18    383.23  212.01     795.66  \n",
       "建筑业           93.90    105.32     52.89   331.95    113.01   99.36     976.47  \n",
       "批发零售        2120.84    348.51    848.31   637.14   3432.06  483.82    1154.61  \n",
       "交通运输        2814.86    441.83    746.59  1217.07   1601.27  521.67    2621.85  \n",
       "餐饮住宿        2734.78    137.17    336.22  1268.26    242.07  510.45    3634.97  \n",
       "软件和信息技术服务业  1445.37    186.44    180.51  1076.06   1064.97  289.56    4910.93  \n",
       "金融          2262.51    495.49    382.01  1420.20    435.21  387.01    1920.39  \n",
       "房地产         1249.75    133.23   3052.34  2160.51    763.30  610.64    1539.37  \n",
       "租赁和商务服务     3630.03    371.96    721.52   570.83    286.15  721.31    2427.33  \n",
       "科学技术研究      8727.91     33.06      1.41   137.36     25.09    3.18      35.94  \n",
       "水利生态设施管理     134.15    356.27     53.12    57.32     42.45   34.51     169.09  \n",
       "居民服务其他服务     958.95    439.70    547.84   638.77    392.64  216.06    1673.90  \n",
       "教育            63.55      8.53     18.91   769.60     87.01   24.52     741.43  \n",
       "卫生社会          15.01      7.04      8.03    22.83    302.88    8.56     252.25  \n",
       "文化体育娱乐       244.73     41.70    113.56   239.34     34.45  923.28     656.78  \n",
       "公共管理和社会组织     63.49      8.36     16.11    88.86     12.24   12.45    2070.83  \n",
       "\n",
       "[40 rows x 40 columns]"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "io20.q1"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "264f1045",
   "metadata": {},
   "source": [
    "## 查看某一行业的中间投入（列）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "2ec51e79",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "hovertemplate": "variable=专用设备<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "专用设备",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "专用设备",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "zczMzMzMH0AAAAAAALBSQAAAAAAAAAAAMzMzMzMTUUBSuB6F6xlmQJqZmZmZgWhAXI/C9SjcT0Bcj8L1KDxgQEjhehSuJ0tAUrgehesldECamZmZmTlFQOF6FK5H4RVAKVyPwvUyjkBmZmZmZmp5QFK4HoVrFKNAKVyPwvXek0BI4XoUrq6ZQOxRuB6FsqtAj8L1KFwSs0AUrkfheqaLQAAAAAAAwGNAhetRuB44m0BxPQrXo4ShQM3MzMzMEIFAKVyPwvW+g0BxPQrXo/AoQBSuR+F6np5Aj8L1KFwPlkBcj8L1KLh1QEjhehSuN2pAexSuR+Hyh0ApXI/C9eg1QNejcD0KAZBArkfhehSieEB7FK5H4fpAQFK4HoXrAWJA16NwPQrXI0B7FK5H4To+QGZmZmZm5kpAZmZmZmZmLUA=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "relative",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "px.bar(io20.q1['专用设备'])"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "7b9f3828",
   "metadata": {},
   "source": [
    "## 查看某一行业的中间产出（行）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "3b34e115",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "hovertemplate": "variable=教育<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "教育",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "教育",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "PQrXo3CdTkAK16NwPYpOQPYoXI/CSYRA7FG4HoVjdkBcj8L1KFxuQI/C9ShcX2NAhetRuB4lQUA9CtejcMWIQNejcD0Kf31Aj8L1KFwZkEDD9Shcj8JRQAAAAAAAAAAAj8L1KFyPFkCkcD0K10NcQIXrUbgehQVAKVyPwvUoEkApXI/C9fhSQM3MzMzMPFBAMzMzMzOzKkCF61G4HgUnQB+F61G4Hv0/UrgehevRIkDD9Shcj5JVQPYoXI/CaYBAexSuR+GSe0AzMzMzM790QIXrUbge6YNA4XoUrkcEk0DXo3A9CtGTQArXo3A90JBAzczMzMwwlkDsUbgeBeGgQHE9Ctej1oFA7FG4HoUrYUApXI/C9ahMQFyPwvUo9oNAzczMzMwMiEAUrkfhetQ2QHsUrkfh6m1A16NwPQo3VkA=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "relative",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "px.bar(io20.q1['教育'])"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "11546638",
   "metadata": {},
   "source": []
  },
  {
   "cell_type": "markdown",
   "id": "2060766a",
   "metadata": {},
   "source": [
    "# 第二象限"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "939a453c",
   "metadata": {},
   "source": [
    "from merge_io_table import InputOutputTable"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "e2b9ab6b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>中间使用合计</th>\n",
       "      <th>农村居民消费支出</th>\n",
       "      <th>城镇居民消费支出</th>\n",
       "      <th>居民消费支出</th>\n",
       "      <th>政府消费支出</th>\n",
       "      <th>消费支出合计</th>\n",
       "      <th>固定资本形成总额</th>\n",
       "      <th>存货变动</th>\n",
       "      <th>资本形成总额</th>\n",
       "      <th>出口</th>\n",
       "      <th>最终使用合计</th>\n",
       "      <th>进口</th>\n",
       "      <th>总产出</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>农林牧渔</th>\n",
       "      <td>95485.47</td>\n",
       "      <td>10974.55</td>\n",
       "      <td>22105.50</td>\n",
       "      <td>33080.05</td>\n",
       "      <td>1963.96</td>\n",
       "      <td>35044.01</td>\n",
       "      <td>1757.73</td>\n",
       "      <td>5490.15</td>\n",
       "      <td>7247.88</td>\n",
       "      <td>1817.17</td>\n",
       "      <td>44109.06</td>\n",
       "      <td>6426.20</td>\n",
       "      <td>133168.33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>采矿业</th>\n",
       "      <td>84504.45</td>\n",
       "      <td>75.33</td>\n",
       "      <td>46.90</td>\n",
       "      <td>122.23</td>\n",
       "      <td>0.00</td>\n",
       "      <td>122.23</td>\n",
       "      <td>0.00</td>\n",
       "      <td>46.22</td>\n",
       "      <td>46.22</td>\n",
       "      <td>467.92</td>\n",
       "      <td>636.37</td>\n",
       "      <td>29487.47</td>\n",
       "      <td>55653.36</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>农副食品</th>\n",
       "      <td>41176.31</td>\n",
       "      <td>8684.35</td>\n",
       "      <td>24074.12</td>\n",
       "      <td>32758.47</td>\n",
       "      <td>0.00</td>\n",
       "      <td>32758.47</td>\n",
       "      <td>0.00</td>\n",
       "      <td>609.34</td>\n",
       "      <td>609.34</td>\n",
       "      <td>2275.44</td>\n",
       "      <td>35643.26</td>\n",
       "      <td>5735.48</td>\n",
       "      <td>71084.08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>食品饮料</th>\n",
       "      <td>19133.62</td>\n",
       "      <td>6198.57</td>\n",
       "      <td>18889.60</td>\n",
       "      <td>25088.18</td>\n",
       "      <td>0.00</td>\n",
       "      <td>25088.18</td>\n",
       "      <td>0.00</td>\n",
       "      <td>114.16</td>\n",
       "      <td>114.16</td>\n",
       "      <td>1281.92</td>\n",
       "      <td>26484.26</td>\n",
       "      <td>2233.94</td>\n",
       "      <td>43383.94</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>烟草</th>\n",
       "      <td>7656.98</td>\n",
       "      <td>735.92</td>\n",
       "      <td>2268.95</td>\n",
       "      <td>3004.87</td>\n",
       "      <td>0.00</td>\n",
       "      <td>3004.87</td>\n",
       "      <td>0.00</td>\n",
       "      <td>129.06</td>\n",
       "      <td>129.06</td>\n",
       "      <td>25.98</td>\n",
       "      <td>3159.92</td>\n",
       "      <td>148.64</td>\n",
       "      <td>10668.26</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>纺织服装</th>\n",
       "      <td>47300.49</td>\n",
       "      <td>2301.37</td>\n",
       "      <td>10819.38</td>\n",
       "      <td>13120.75</td>\n",
       "      <td>0.00</td>\n",
       "      <td>13120.75</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-357.11</td>\n",
       "      <td>-357.11</td>\n",
       "      <td>18680.11</td>\n",
       "      <td>31443.76</td>\n",
       "      <td>3005.55</td>\n",
       "      <td>75738.69</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>木材家具</th>\n",
       "      <td>18446.11</td>\n",
       "      <td>500.75</td>\n",
       "      <td>1764.63</td>\n",
       "      <td>2265.38</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2265.38</td>\n",
       "      <td>2159.58</td>\n",
       "      <td>167.41</td>\n",
       "      <td>2326.99</td>\n",
       "      <td>4476.53</td>\n",
       "      <td>9068.90</td>\n",
       "      <td>973.69</td>\n",
       "      <td>26541.32</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>造纸印刷</th>\n",
       "      <td>28534.25</td>\n",
       "      <td>59.84</td>\n",
       "      <td>276.19</td>\n",
       "      <td>336.03</td>\n",
       "      <td>0.00</td>\n",
       "      <td>336.03</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-626.59</td>\n",
       "      <td>-626.59</td>\n",
       "      <td>930.91</td>\n",
       "      <td>640.35</td>\n",
       "      <td>1734.71</td>\n",
       "      <td>27439.89</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>文体工美</th>\n",
       "      <td>7117.65</td>\n",
       "      <td>552.25</td>\n",
       "      <td>2658.49</td>\n",
       "      <td>3210.74</td>\n",
       "      <td>0.00</td>\n",
       "      <td>3210.74</td>\n",
       "      <td>428.11</td>\n",
       "      <td>-177.31</td>\n",
       "      <td>250.81</td>\n",
       "      <td>5676.55</td>\n",
       "      <td>9138.09</td>\n",
       "      <td>856.36</td>\n",
       "      <td>15399.38</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>石油化工</th>\n",
       "      <td>122383.12</td>\n",
       "      <td>851.81</td>\n",
       "      <td>4808.38</td>\n",
       "      <td>5660.20</td>\n",
       "      <td>0.00</td>\n",
       "      <td>5660.20</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-2321.20</td>\n",
       "      <td>-2321.20</td>\n",
       "      <td>7836.56</td>\n",
       "      <td>11175.56</td>\n",
       "      <td>14433.81</td>\n",
       "      <td>119124.88</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>医药制品</th>\n",
       "      <td>24463.78</td>\n",
       "      <td>1626.68</td>\n",
       "      <td>4759.60</td>\n",
       "      <td>6386.27</td>\n",
       "      <td>0.00</td>\n",
       "      <td>6386.27</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-33.62</td>\n",
       "      <td>-33.62</td>\n",
       "      <td>2293.11</td>\n",
       "      <td>8645.76</td>\n",
       "      <td>3103.93</td>\n",
       "      <td>30005.61</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>化学纤维</th>\n",
       "      <td>7088.92</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.11</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-15.11</td>\n",
       "      <td>-15.11</td>\n",
       "      <td>382.35</td>\n",
       "      <td>367.39</td>\n",
       "      <td>138.21</td>\n",
       "      <td>7318.11</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>橡胶塑料</th>\n",
       "      <td>31341.09</td>\n",
       "      <td>161.86</td>\n",
       "      <td>480.21</td>\n",
       "      <td>642.08</td>\n",
       "      <td>0.00</td>\n",
       "      <td>642.08</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-190.58</td>\n",
       "      <td>-190.58</td>\n",
       "      <td>5712.06</td>\n",
       "      <td>6163.55</td>\n",
       "      <td>1685.49</td>\n",
       "      <td>35819.16</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>非金属制品</th>\n",
       "      <td>70328.71</td>\n",
       "      <td>156.08</td>\n",
       "      <td>392.58</td>\n",
       "      <td>548.67</td>\n",
       "      <td>0.00</td>\n",
       "      <td>548.67</td>\n",
       "      <td>0.00</td>\n",
       "      <td>214.07</td>\n",
       "      <td>214.07</td>\n",
       "      <td>3455.42</td>\n",
       "      <td>4218.16</td>\n",
       "      <td>1243.67</td>\n",
       "      <td>73303.19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>黑色金属冶炼压延</th>\n",
       "      <td>67787.78</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>440.55</td>\n",
       "      <td>440.55</td>\n",
       "      <td>2776.79</td>\n",
       "      <td>3217.34</td>\n",
       "      <td>2654.12</td>\n",
       "      <td>68350.99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>有色金属冶炼压延</th>\n",
       "      <td>56233.48</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-95.79</td>\n",
       "      <td>-95.79</td>\n",
       "      <td>1796.57</td>\n",
       "      <td>1700.78</td>\n",
       "      <td>5467.26</td>\n",
       "      <td>52467.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>金属制品</th>\n",
       "      <td>42576.77</td>\n",
       "      <td>66.55</td>\n",
       "      <td>421.50</td>\n",
       "      <td>488.05</td>\n",
       "      <td>0.00</td>\n",
       "      <td>488.05</td>\n",
       "      <td>2516.29</td>\n",
       "      <td>950.94</td>\n",
       "      <td>3467.23</td>\n",
       "      <td>6234.86</td>\n",
       "      <td>10190.14</td>\n",
       "      <td>818.74</td>\n",
       "      <td>51948.17</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>通用设备</th>\n",
       "      <td>31438.36</td>\n",
       "      <td>37.64</td>\n",
       "      <td>122.84</td>\n",
       "      <td>160.48</td>\n",
       "      <td>0.00</td>\n",
       "      <td>160.48</td>\n",
       "      <td>17036.21</td>\n",
       "      <td>941.36</td>\n",
       "      <td>17977.57</td>\n",
       "      <td>9256.93</td>\n",
       "      <td>27394.98</td>\n",
       "      <td>5542.24</td>\n",
       "      <td>53291.10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>专用设备</th>\n",
       "      <td>17341.74</td>\n",
       "      <td>59.56</td>\n",
       "      <td>372.07</td>\n",
       "      <td>431.63</td>\n",
       "      <td>0.00</td>\n",
       "      <td>431.63</td>\n",
       "      <td>20492.96</td>\n",
       "      <td>455.61</td>\n",
       "      <td>20948.57</td>\n",
       "      <td>5935.03</td>\n",
       "      <td>27315.23</td>\n",
       "      <td>5921.86</td>\n",
       "      <td>38735.11</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>汽车及零部件制造</th>\n",
       "      <td>38547.87</td>\n",
       "      <td>2145.44</td>\n",
       "      <td>12683.73</td>\n",
       "      <td>14829.16</td>\n",
       "      <td>0.00</td>\n",
       "      <td>14829.16</td>\n",
       "      <td>17641.64</td>\n",
       "      <td>1627.72</td>\n",
       "      <td>19269.36</td>\n",
       "      <td>3152.44</td>\n",
       "      <td>37250.96</td>\n",
       "      <td>5153.09</td>\n",
       "      <td>70645.75</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>其他交通设备</th>\n",
       "      <td>6082.34</td>\n",
       "      <td>569.76</td>\n",
       "      <td>902.54</td>\n",
       "      <td>1472.30</td>\n",
       "      <td>0.00</td>\n",
       "      <td>1472.30</td>\n",
       "      <td>6060.10</td>\n",
       "      <td>10.95</td>\n",
       "      <td>6071.05</td>\n",
       "      <td>2896.44</td>\n",
       "      <td>10439.80</td>\n",
       "      <td>920.75</td>\n",
       "      <td>15601.39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>电气机械</th>\n",
       "      <td>47286.59</td>\n",
       "      <td>1087.90</td>\n",
       "      <td>2924.26</td>\n",
       "      <td>4012.16</td>\n",
       "      <td>0.00</td>\n",
       "      <td>4012.16</td>\n",
       "      <td>6381.37</td>\n",
       "      <td>75.27</td>\n",
       "      <td>6456.65</td>\n",
       "      <td>17054.85</td>\n",
       "      <td>27523.66</td>\n",
       "      <td>5043.62</td>\n",
       "      <td>69766.63</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>计算机通信设备</th>\n",
       "      <td>86751.40</td>\n",
       "      <td>1431.70</td>\n",
       "      <td>4878.39</td>\n",
       "      <td>6310.09</td>\n",
       "      <td>0.00</td>\n",
       "      <td>6310.09</td>\n",
       "      <td>9419.25</td>\n",
       "      <td>950.58</td>\n",
       "      <td>10369.83</td>\n",
       "      <td>41536.09</td>\n",
       "      <td>58216.01</td>\n",
       "      <td>35831.49</td>\n",
       "      <td>109135.93</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>其他制造业</th>\n",
       "      <td>25592.14</td>\n",
       "      <td>211.11</td>\n",
       "      <td>640.92</td>\n",
       "      <td>852.02</td>\n",
       "      <td>0.00</td>\n",
       "      <td>852.02</td>\n",
       "      <td>1485.32</td>\n",
       "      <td>-546.95</td>\n",
       "      <td>938.37</td>\n",
       "      <td>4063.38</td>\n",
       "      <td>5853.77</td>\n",
       "      <td>5311.48</td>\n",
       "      <td>26134.42</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>水电燃</th>\n",
       "      <td>70264.99</td>\n",
       "      <td>1611.09</td>\n",
       "      <td>9998.44</td>\n",
       "      <td>11609.53</td>\n",
       "      <td>0.00</td>\n",
       "      <td>11609.53</td>\n",
       "      <td>0.00</td>\n",
       "      <td>178.52</td>\n",
       "      <td>178.52</td>\n",
       "      <td>104.50</td>\n",
       "      <td>11892.55</td>\n",
       "      <td>12.32</td>\n",
       "      <td>82145.21</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>建筑业</th>\n",
       "      <td>14999.26</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>270717.63</td>\n",
       "      <td>0.00</td>\n",
       "      <td>270717.63</td>\n",
       "      <td>868.11</td>\n",
       "      <td>271585.74</td>\n",
       "      <td>554.50</td>\n",
       "      <td>286030.50</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>批发零售</th>\n",
       "      <td>100867.62</td>\n",
       "      <td>5145.75</td>\n",
       "      <td>16652.27</td>\n",
       "      <td>21798.02</td>\n",
       "      <td>0.00</td>\n",
       "      <td>21798.02</td>\n",
       "      <td>8492.11</td>\n",
       "      <td>834.56</td>\n",
       "      <td>9326.67</td>\n",
       "      <td>17859.15</td>\n",
       "      <td>48983.85</td>\n",
       "      <td>0.00</td>\n",
       "      <td>149851.47</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>交通运输</th>\n",
       "      <td>92543.91</td>\n",
       "      <td>3060.74</td>\n",
       "      <td>10737.86</td>\n",
       "      <td>13798.60</td>\n",
       "      <td>4278.77</td>\n",
       "      <td>18077.37</td>\n",
       "      <td>3438.10</td>\n",
       "      <td>278.79</td>\n",
       "      <td>3716.89</td>\n",
       "      <td>9511.17</td>\n",
       "      <td>31305.43</td>\n",
       "      <td>3932.22</td>\n",
       "      <td>119917.13</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>餐饮住宿</th>\n",
       "      <td>27435.79</td>\n",
       "      <td>2663.22</td>\n",
       "      <td>15606.11</td>\n",
       "      <td>18269.33</td>\n",
       "      <td>0.00</td>\n",
       "      <td>18269.33</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>270.60</td>\n",
       "      <td>18539.92</td>\n",
       "      <td>2776.74</td>\n",
       "      <td>43198.98</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>软件和信息技术服务业</th>\n",
       "      <td>50874.08</td>\n",
       "      <td>2772.99</td>\n",
       "      <td>9699.21</td>\n",
       "      <td>12472.19</td>\n",
       "      <td>0.00</td>\n",
       "      <td>12472.19</td>\n",
       "      <td>32868.66</td>\n",
       "      <td>0.00</td>\n",
       "      <td>32868.66</td>\n",
       "      <td>3074.50</td>\n",
       "      <td>48415.36</td>\n",
       "      <td>2765.15</td>\n",
       "      <td>96524.28</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>金融</th>\n",
       "      <td>88794.67</td>\n",
       "      <td>4232.28</td>\n",
       "      <td>25766.61</td>\n",
       "      <td>29998.89</td>\n",
       "      <td>4510.25</td>\n",
       "      <td>34509.14</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>689.52</td>\n",
       "      <td>35198.65</td>\n",
       "      <td>1056.31</td>\n",
       "      <td>122937.02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>房地产</th>\n",
       "      <td>48421.32</td>\n",
       "      <td>10679.99</td>\n",
       "      <td>44266.04</td>\n",
       "      <td>54946.03</td>\n",
       "      <td>0.00</td>\n",
       "      <td>54946.03</td>\n",
       "      <td>3296.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>3296.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>58242.03</td>\n",
       "      <td>0.00</td>\n",
       "      <td>106663.35</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>租赁和商务服务</th>\n",
       "      <td>89449.81</td>\n",
       "      <td>175.76</td>\n",
       "      <td>3406.31</td>\n",
       "      <td>3582.07</td>\n",
       "      <td>2215.56</td>\n",
       "      <td>5797.63</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>4052.53</td>\n",
       "      <td>9850.17</td>\n",
       "      <td>3043.72</td>\n",
       "      <td>96256.26</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>科学技术研究</th>\n",
       "      <td>42213.37</td>\n",
       "      <td>84.57</td>\n",
       "      <td>355.42</td>\n",
       "      <td>439.99</td>\n",
       "      <td>14631.98</td>\n",
       "      <td>15071.97</td>\n",
       "      <td>19655.86</td>\n",
       "      <td>0.00</td>\n",
       "      <td>19655.86</td>\n",
       "      <td>967.82</td>\n",
       "      <td>35695.65</td>\n",
       "      <td>2774.78</td>\n",
       "      <td>75134.24</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>水利生态设施管理</th>\n",
       "      <td>3460.95</td>\n",
       "      <td>83.76</td>\n",
       "      <td>440.18</td>\n",
       "      <td>523.94</td>\n",
       "      <td>7570.57</td>\n",
       "      <td>8094.51</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>29.32</td>\n",
       "      <td>8123.83</td>\n",
       "      <td>268.38</td>\n",
       "      <td>11316.40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>居民服务其他服务</th>\n",
       "      <td>14961.92</td>\n",
       "      <td>2553.26</td>\n",
       "      <td>12622.39</td>\n",
       "      <td>15175.65</td>\n",
       "      <td>0.00</td>\n",
       "      <td>15175.65</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>9.77</td>\n",
       "      <td>15185.42</td>\n",
       "      <td>113.57</td>\n",
       "      <td>30033.76</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>教育</th>\n",
       "      <td>2767.17</td>\n",
       "      <td>5114.80</td>\n",
       "      <td>18395.03</td>\n",
       "      <td>23509.83</td>\n",
       "      <td>26971.76</td>\n",
       "      <td>50481.58</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>50481.58</td>\n",
       "      <td>0.00</td>\n",
       "      <td>53248.76</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>卫生社会</th>\n",
       "      <td>1523.73</td>\n",
       "      <td>4248.60</td>\n",
       "      <td>12916.88</td>\n",
       "      <td>17165.48</td>\n",
       "      <td>32789.56</td>\n",
       "      <td>49955.04</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>15.70</td>\n",
       "      <td>49970.74</td>\n",
       "      <td>119.50</td>\n",
       "      <td>51374.96</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>文化体育娱乐</th>\n",
       "      <td>6393.75</td>\n",
       "      <td>694.96</td>\n",
       "      <td>4607.78</td>\n",
       "      <td>5302.74</td>\n",
       "      <td>4203.86</td>\n",
       "      <td>9506.60</td>\n",
       "      <td>523.46</td>\n",
       "      <td>0.00</td>\n",
       "      <td>523.46</td>\n",
       "      <td>284.54</td>\n",
       "      <td>10314.60</td>\n",
       "      <td>1124.00</td>\n",
       "      <td>15584.34</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>公共管理和社会组织</th>\n",
       "      <td>3034.02</td>\n",
       "      <td>53.46</td>\n",
       "      <td>582.62</td>\n",
       "      <td>636.08</td>\n",
       "      <td>74489.11</td>\n",
       "      <td>75125.19</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>173.42</td>\n",
       "      <td>75298.62</td>\n",
       "      <td>246.15</td>\n",
       "      <td>78086.48</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "               中间使用合计  农村居民消费支出  城镇居民消费支出    居民消费支出    政府消费支出    消费支出合计  \\\n",
       "农林牧渔         95485.47  10974.55  22105.50  33080.05   1963.96  35044.01   \n",
       "采矿业          84504.45     75.33     46.90    122.23      0.00    122.23   \n",
       "农副食品         41176.31   8684.35  24074.12  32758.47      0.00  32758.47   \n",
       "食品饮料         19133.62   6198.57  18889.60  25088.18      0.00  25088.18   \n",
       "烟草            7656.98    735.92   2268.95   3004.87      0.00   3004.87   \n",
       "纺织服装         47300.49   2301.37  10819.38  13120.75      0.00  13120.75   \n",
       "木材家具         18446.11    500.75   1764.63   2265.38      0.00   2265.38   \n",
       "造纸印刷         28534.25     59.84    276.19    336.03      0.00    336.03   \n",
       "文体工美          7117.65    552.25   2658.49   3210.74      0.00   3210.74   \n",
       "石油化工        122383.12    851.81   4808.38   5660.20      0.00   5660.20   \n",
       "医药制品         24463.78   1626.68   4759.60   6386.27      0.00   6386.27   \n",
       "化学纤维          7088.92      0.05      0.11      0.16      0.00      0.16   \n",
       "橡胶塑料         31341.09    161.86    480.21    642.08      0.00    642.08   \n",
       "非金属制品        70328.71    156.08    392.58    548.67      0.00    548.67   \n",
       "黑色金属冶炼压延     67787.78      0.00      0.00      0.00      0.00      0.00   \n",
       "有色金属冶炼压延     56233.48      0.00      0.00      0.00      0.00      0.00   \n",
       "金属制品         42576.77     66.55    421.50    488.05      0.00    488.05   \n",
       "通用设备         31438.36     37.64    122.84    160.48      0.00    160.48   \n",
       "专用设备         17341.74     59.56    372.07    431.63      0.00    431.63   \n",
       "汽车及零部件制造     38547.87   2145.44  12683.73  14829.16      0.00  14829.16   \n",
       "其他交通设备        6082.34    569.76    902.54   1472.30      0.00   1472.30   \n",
       "电气机械         47286.59   1087.90   2924.26   4012.16      0.00   4012.16   \n",
       "计算机通信设备      86751.40   1431.70   4878.39   6310.09      0.00   6310.09   \n",
       "其他制造业        25592.14    211.11    640.92    852.02      0.00    852.02   \n",
       "水电燃          70264.99   1611.09   9998.44  11609.53      0.00  11609.53   \n",
       "建筑业          14999.26      0.00      0.00      0.00      0.00      0.00   \n",
       "批发零售        100867.62   5145.75  16652.27  21798.02      0.00  21798.02   \n",
       "交通运输         92543.91   3060.74  10737.86  13798.60   4278.77  18077.37   \n",
       "餐饮住宿         27435.79   2663.22  15606.11  18269.33      0.00  18269.33   \n",
       "软件和信息技术服务业   50874.08   2772.99   9699.21  12472.19      0.00  12472.19   \n",
       "金融           88794.67   4232.28  25766.61  29998.89   4510.25  34509.14   \n",
       "房地产          48421.32  10679.99  44266.04  54946.03      0.00  54946.03   \n",
       "租赁和商务服务      89449.81    175.76   3406.31   3582.07   2215.56   5797.63   \n",
       "科学技术研究       42213.37     84.57    355.42    439.99  14631.98  15071.97   \n",
       "水利生态设施管理      3460.95     83.76    440.18    523.94   7570.57   8094.51   \n",
       "居民服务其他服务     14961.92   2553.26  12622.39  15175.65      0.00  15175.65   \n",
       "教育            2767.17   5114.80  18395.03  23509.83  26971.76  50481.58   \n",
       "卫生社会          1523.73   4248.60  12916.88  17165.48  32789.56  49955.04   \n",
       "文化体育娱乐        6393.75    694.96   4607.78   5302.74   4203.86   9506.60   \n",
       "公共管理和社会组织     3034.02     53.46    582.62    636.08  74489.11  75125.19   \n",
       "\n",
       "             固定资本形成总额     存货变动     资本形成总额        出口     最终使用合计        进口  \\\n",
       "农林牧渔          1757.73  5490.15    7247.88   1817.17   44109.06   6426.20   \n",
       "采矿业              0.00    46.22      46.22    467.92     636.37  29487.47   \n",
       "农副食品             0.00   609.34     609.34   2275.44   35643.26   5735.48   \n",
       "食品饮料             0.00   114.16     114.16   1281.92   26484.26   2233.94   \n",
       "烟草               0.00   129.06     129.06     25.98    3159.92    148.64   \n",
       "纺织服装             0.00  -357.11    -357.11  18680.11   31443.76   3005.55   \n",
       "木材家具          2159.58   167.41    2326.99   4476.53    9068.90    973.69   \n",
       "造纸印刷             0.00  -626.59    -626.59    930.91     640.35   1734.71   \n",
       "文体工美           428.11  -177.31     250.81   5676.55    9138.09    856.36   \n",
       "石油化工             0.00 -2321.20   -2321.20   7836.56   11175.56  14433.81   \n",
       "医药制品             0.00   -33.62     -33.62   2293.11    8645.76   3103.93   \n",
       "化学纤维             0.00   -15.11     -15.11    382.35     367.39    138.21   \n",
       "橡胶塑料             0.00  -190.58    -190.58   5712.06    6163.55   1685.49   \n",
       "非金属制品            0.00   214.07     214.07   3455.42    4218.16   1243.67   \n",
       "黑色金属冶炼压延         0.00   440.55     440.55   2776.79    3217.34   2654.12   \n",
       "有色金属冶炼压延         0.00   -95.79     -95.79   1796.57    1700.78   5467.26   \n",
       "金属制品          2516.29   950.94    3467.23   6234.86   10190.14    818.74   \n",
       "通用设备         17036.21   941.36   17977.57   9256.93   27394.98   5542.24   \n",
       "专用设备         20492.96   455.61   20948.57   5935.03   27315.23   5921.86   \n",
       "汽车及零部件制造     17641.64  1627.72   19269.36   3152.44   37250.96   5153.09   \n",
       "其他交通设备        6060.10    10.95    6071.05   2896.44   10439.80    920.75   \n",
       "电气机械          6381.37    75.27    6456.65  17054.85   27523.66   5043.62   \n",
       "计算机通信设备       9419.25   950.58   10369.83  41536.09   58216.01  35831.49   \n",
       "其他制造业         1485.32  -546.95     938.37   4063.38    5853.77   5311.48   \n",
       "水电燃              0.00   178.52     178.52    104.50   11892.55     12.32   \n",
       "建筑业         270717.63     0.00  270717.63    868.11  271585.74    554.50   \n",
       "批发零售          8492.11   834.56    9326.67  17859.15   48983.85      0.00   \n",
       "交通运输          3438.10   278.79    3716.89   9511.17   31305.43   3932.22   \n",
       "餐饮住宿             0.00     0.00       0.00    270.60   18539.92   2776.74   \n",
       "软件和信息技术服务业   32868.66     0.00   32868.66   3074.50   48415.36   2765.15   \n",
       "金融               0.00     0.00       0.00    689.52   35198.65   1056.31   \n",
       "房地产           3296.00     0.00    3296.00      0.00   58242.03      0.00   \n",
       "租赁和商务服务          0.00     0.00       0.00   4052.53    9850.17   3043.72   \n",
       "科学技术研究       19655.86     0.00   19655.86    967.82   35695.65   2774.78   \n",
       "水利生态设施管理         0.00     0.00       0.00     29.32    8123.83    268.38   \n",
       "居民服务其他服务         0.00     0.00       0.00      9.77   15185.42    113.57   \n",
       "教育               0.00     0.00       0.00      0.00   50481.58      0.00   \n",
       "卫生社会             0.00     0.00       0.00     15.70   49970.74    119.50   \n",
       "文化体育娱乐         523.46     0.00     523.46    284.54   10314.60   1124.00   \n",
       "公共管理和社会组织        0.00     0.00       0.00    173.42   75298.62    246.15   \n",
       "\n",
       "                  总产出  \n",
       "农林牧渔        133168.33  \n",
       "采矿业          55653.36  \n",
       "农副食品         71084.08  \n",
       "食品饮料         43383.94  \n",
       "烟草           10668.26  \n",
       "纺织服装         75738.69  \n",
       "木材家具         26541.32  \n",
       "造纸印刷         27439.89  \n",
       "文体工美         15399.38  \n",
       "石油化工        119124.88  \n",
       "医药制品         30005.61  \n",
       "化学纤维          7318.11  \n",
       "橡胶塑料         35819.16  \n",
       "非金属制品        73303.19  \n",
       "黑色金属冶炼压延     68350.99  \n",
       "有色金属冶炼压延     52467.00  \n",
       "金属制品         51948.17  \n",
       "通用设备         53291.10  \n",
       "专用设备         38735.11  \n",
       "汽车及零部件制造     70645.75  \n",
       "其他交通设备       15601.39  \n",
       "电气机械         69766.63  \n",
       "计算机通信设备     109135.93  \n",
       "其他制造业        26134.42  \n",
       "水电燃          82145.21  \n",
       "建筑业         286030.50  \n",
       "批发零售        149851.47  \n",
       "交通运输        119917.13  \n",
       "餐饮住宿         43198.98  \n",
       "软件和信息技术服务业   96524.28  \n",
       "金融          122937.02  \n",
       "房地产         106663.35  \n",
       "租赁和商务服务      96256.26  \n",
       "科学技术研究       75134.24  \n",
       "水利生态设施管理     11316.40  \n",
       "居民服务其他服务     30033.76  \n",
       "教育           53248.76  \n",
       "卫生社会         51374.96  \n",
       "文化体育娱乐       15584.34  \n",
       "公共管理和社会组织    78086.48  "
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "io20.q2\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "241c51f1",
   "metadata": {},
   "source": [
    "## 查看最终需求某一分项"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "20aefd04",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "hovertemplate": "variable=居民消费支出<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "居民消费支出",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "居民消费支出",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "mpmZmQEn4EAfhetRuI5eQEjhehSe/d9AUrgehQuA2EAK16NwvXmnQAAAAABgoMlA9ihcj8KyoUAUrkfhegB1QBSuR+F6FalAMzMzMzMctkDsUbgeRfK4QHsUrkfhesQ/cT0K16MQhECPwvUoXCWBQAAAAAAAAAAAAAAAAAAAAADNzMzMzIB+QI/C9ShcD2RArkfhehT6ekCuR+F6lPbMQDMzMzMzAZdAuB6F61FYr0CkcD0KF6a4QFyPwvUooIpAcT0K18OsxkAAAAAAAAAAAHsUrkeBSdVAzczMzEzzykDsUbgeVdfRQB+F61EYXMhAXI/C9bhL3UBcj8L1QNTqQHE9Ctcj/KtApHA9Ctd/e0DsUbgehV+AQDMzMzPTo81A7FG4HnX11kCF61G4XsPQQArXo3C9trRAcT0K16Pgg0A=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "relative",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "px.bar(io20.q2.居民消费支出)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "0dd48358",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "hovertemplate": "variable=政府消费支出<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "政府消费支出",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "政府消费支出",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "pHA9CtevnkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA7FG4HsW2sEAAAAAAAAAAAAAAAAAAAAAAAAAAAECesUAAAAAAAAAAAIXrUbgeT6FACtejcP2TzEC4HoXrkZK9QAAAAAAAAAAAPQrXo/BW2kC4HoXrsQLgQI/C9Sjca7BAKVyPwpEv8kA=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "relative",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "px.bar(io20.q2.政府消费支出)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "87a6e229",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=居民消费支出<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "居民消费支出",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "居民消费支出",
         "offsetgroup": "居民消费支出",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "mpmZmQEn4EAfhetRuI5eQEjhehSe/d9AUrgehQuA2EAK16NwvXmnQAAAAABgoMlA9ihcj8KyoUAUrkfhegB1QBSuR+F6FalAMzMzMzMctkDsUbgeRfK4QHsUrkfhesQ/cT0K16MQhECPwvUoXCWBQAAAAAAAAAAAAAAAAAAAAADNzMzMzIB+QI/C9ShcD2RArkfhehT6ekCuR+F6lPbMQDMzMzMzAZdAuB6F61FYr0CkcD0KF6a4QFyPwvUooIpAcT0K18OsxkAAAAAAAAAAAHsUrkeBSdVAzczMzEzzykDsUbgeVdfRQB+F61EYXMhAXI/C9bhL3UBcj8L1QNTqQHE9Ctcj/KtApHA9Ctd/e0DsUbgehV+AQDMzMzPTo81A7FG4HnX11kCF61G4XsPQQArXo3C9trRAcT0K16Pgg0A=",
          "dtype": "f8"
         },
         "yaxis": "y"
        },
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=政府消费支出<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "政府消费支出",
         "marker": {
          "color": "#EF553B",
          "pattern": {
           "shape": ""
          }
         },
         "name": "政府消费支出",
         "offsetgroup": "政府消费支出",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "pHA9CtevnkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA7FG4HsW2sEAAAAAAAAAAAAAAAAAAAAAAAAAAAECesUAAAAAAAAAAAIXrUbgeT6FACtejcP2TzEC4HoXrkZK9QAAAAAAAAAAAPQrXo/BW2kC4HoXrsQLgQI/C9Sjca7BAKVyPwpEv8kA=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "group",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "px.bar(io20.q2[['居民消费支出','政府消费支出']], barmode='group')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "5e523d07",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=消费支出合计<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "消费支出合计",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "消费支出合计",
         "offsetgroup": "消费支出合计",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "H4XrUYAc4UAfhetRuI5eQEjhehSe/d9AUrgehQuA2EAK16NwvXmnQAAAAABgoMlA9ihcj8KyoUAUrkfhegB1QBSuR+F6FalAMzMzMzMctkDsUbgeRfK4QHsUrkfhesQ/cT0K16MQhECPwvUoXCWBQAAAAAAAAAAAAAAAAAAAAADNzMzMzIB+QI/C9ShcD2RArkfhehT6ekCuR+F6lPbMQDMzMzMzAZdAuB6F61FYr0CkcD0KF6a4QFyPwvUooIpAcT0K18OsxkAAAAAAAAAAAHsUrkeBSdVA4XoUrlen0UDsUbgeVdfRQB+F61EYXMhArkfheqTZ4EBcj8L1QNTqQHsUrkehpbZAj8L1KPxvzUD2KFyPgp6/QDMzMzPTo81A9ihcjzKm6EB7FK5HYWToQM3MzMxMkcJApHA9ClNX8kA=",
          "dtype": "f8"
         },
         "yaxis": "y"
        },
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=资本形成总额<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "资本形成总额",
         "marker": {
          "color": "#EF553B",
          "pattern": {
           "shape": ""
          }
         },
         "name": "资本形成总额",
         "offsetgroup": "资本形成总额",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "exSuR+FPvEBcj8L1KBxHQB+F61G4CoNACtejcD2KXEBSuB6F6yFgQPYoXI/CUXbAFK5H4fotokAfhetRuJSDwFK4HoXrWW9AZmZmZmYiosCPwvUoXM9AwLgehetROC7Aw/UoXI/SZ8AK16NwPcJqQM3MzMzMiHtAw/UoXI/yV8ApXI/CdRarQK5H4XpkjtFArkfheiR11ECkcD0KV9HSQM3MzMwMt7dAZmZmZqY4uUDXo3A96kDEQClcj8L1Uo1AcT0K16NQZkBSuB6F9oUQQSlcj8JVN8JA4XoUrscJrUAAAAAAAAAAAOxRuB6VDOBAAAAAAAAAAAAAAAAAAMCpQAAAAAAAAAAApHA9Cvcx00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEjhehSuW4BAAAAAAAAAAAA=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "group",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "px.bar(io20.q2[['消费支出合计','资本形成总额']], barmode='group')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "41e77566",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=出口<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "出口",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "出口",
         "offsetgroup": "出口",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "SOF6FK5knEAfhetRuD59QHsUrkfhxqFASOF6FK4HlEB7FK5H4fo5QKRwPQoHPtJA4XoUrod8sUDhehSuRxeNQM3MzMyMLLZAw/UoXI+cvkAfhetROOqhQJqZmZmZ5XdAw/UoXA9QtkCkcD0K1/6qQK5H4XqUsaVA4XoUrkcSnECPwvUo3Fq4QKRwPQp3FMJA4XoUrgcvt0B7FK5H4aCoQHsUrkfhoKZAZmZmZran0EAUrkfhAkjkQPYoXI/Cvq9AAAAAAAAgWkB7FK5H4SCLQJqZmZnJcNFAKVyPwpWTwkCamZmZmelwQAAAAAAABahAXI/C9SiMhUAAAAAAAAAAAMP1KFwPqa9Aw/UoXI8+jkBSuB6F61E9QArXo3A9iiNAAAAAAAAAAABmZmZmZmYvQHE9CtejyHFAPQrXo3CtZUA=",
          "dtype": "f8"
         },
         "yaxis": "y"
        },
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=进口<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "进口",
         "marker": {
          "color": "#EF553B",
          "pattern": {
           "shape": ""
          }
         },
         "name": "进口",
         "offsetgroup": "进口",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "MzMzMzMauUBI4XoU3svcQBSuR+F6Z7ZAexSuR+FzoUAUrkfhepRiQJqZmZkZe6dA7FG4HoVtjkCkcD0K1xqbQHsUrkfhwopA4XoUrucwzECPwvUo3D+oQB+F61G4RmFAKVyPwvVVmkBI4XoUrm6TQArXo3A9vKRA9ihcj0JbtUBSuB6F65WJQArXo3A9prVAj8L1KNwht0CkcD0KFyG0QAAAAAAAxoxAhetRuJ6zs0DhehSu737hQBSuR+F6v7RApHA9CtejKEAAAAAAAFSBQAAAAAAAAAAAPQrXo3C4rkAUrkfherGlQM3MzMxMmqVACtejcD2BkEAAAAAAAAAAAD0K16Nwx6dAw/UoXI+tpUCuR+F6FMZwQBSuR+F6ZFxAAAAAAAAAAAAAAAAAAOBdQAAAAAAAkJFAzczMzMzEbkA=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "group",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "px.bar(io20.q2[['出口','进口']], barmode='group')"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "459c83d6",
   "metadata": {},
   "source": [
    "# 第三象限"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "3e4b1fb2",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>农林牧渔</th>\n",
       "      <th>采矿业</th>\n",
       "      <th>农副食品</th>\n",
       "      <th>食品饮料</th>\n",
       "      <th>烟草</th>\n",
       "      <th>纺织服装</th>\n",
       "      <th>木材家具</th>\n",
       "      <th>造纸印刷</th>\n",
       "      <th>文体工美</th>\n",
       "      <th>石油化工</th>\n",
       "      <th>...</th>\n",
       "      <th>金融</th>\n",
       "      <th>房地产</th>\n",
       "      <th>租赁和商务服务</th>\n",
       "      <th>科学技术研究</th>\n",
       "      <th>水利生态设施管理</th>\n",
       "      <th>居民服务其他服务</th>\n",
       "      <th>教育</th>\n",
       "      <th>卫生社会</th>\n",
       "      <th>文化体育娱乐</th>\n",
       "      <th>公共管理和社会组织</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>中间投入合计</th>\n",
       "      <td>50993.60</td>\n",
       "      <td>25596.27</td>\n",
       "      <td>58549.43</td>\n",
       "      <td>32187.97</td>\n",
       "      <td>3697.50</td>\n",
       "      <td>61291.06</td>\n",
       "      <td>20981.16</td>\n",
       "      <td>20339.82</td>\n",
       "      <td>11944.56</td>\n",
       "      <td>90733.96</td>\n",
       "      <td>...</td>\n",
       "      <td>39319.88</td>\n",
       "      <td>29696.59</td>\n",
       "      <td>64403.55</td>\n",
       "      <td>47027.27</td>\n",
       "      <td>6760.71</td>\n",
       "      <td>14306.09</td>\n",
       "      <td>15919.54</td>\n",
       "      <td>29495.92</td>\n",
       "      <td>7783.30</td>\n",
       "      <td>32612.51</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>劳动者报酬</th>\n",
       "      <td>82110.94</td>\n",
       "      <td>10305.92</td>\n",
       "      <td>4647.59</td>\n",
       "      <td>4060.31</td>\n",
       "      <td>520.91</td>\n",
       "      <td>7807.02</td>\n",
       "      <td>2533.97</td>\n",
       "      <td>2640.96</td>\n",
       "      <td>1885.85</td>\n",
       "      <td>5571.27</td>\n",
       "      <td>...</td>\n",
       "      <td>21528.20</td>\n",
       "      <td>19273.31</td>\n",
       "      <td>25275.72</td>\n",
       "      <td>18126.00</td>\n",
       "      <td>2282.29</td>\n",
       "      <td>12768.98</td>\n",
       "      <td>28165.05</td>\n",
       "      <td>18168.49</td>\n",
       "      <td>5117.25</td>\n",
       "      <td>37487.62</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>生产税净额</th>\n",
       "      <td>-4552.82</td>\n",
       "      <td>8045.40</td>\n",
       "      <td>1305.11</td>\n",
       "      <td>1693.35</td>\n",
       "      <td>5294.34</td>\n",
       "      <td>105.55</td>\n",
       "      <td>543.95</td>\n",
       "      <td>785.80</td>\n",
       "      <td>-156.17</td>\n",
       "      <td>8585.40</td>\n",
       "      <td>...</td>\n",
       "      <td>8271.81</td>\n",
       "      <td>12344.27</td>\n",
       "      <td>2769.05</td>\n",
       "      <td>1330.43</td>\n",
       "      <td>16.62</td>\n",
       "      <td>502.35</td>\n",
       "      <td>62.58</td>\n",
       "      <td>15.74</td>\n",
       "      <td>159.00</td>\n",
       "      <td>181.18</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>固定资产折旧</th>\n",
       "      <td>2304.86</td>\n",
       "      <td>5071.90</td>\n",
       "      <td>1842.91</td>\n",
       "      <td>1054.79</td>\n",
       "      <td>163.91</td>\n",
       "      <td>1715.99</td>\n",
       "      <td>711.55</td>\n",
       "      <td>1240.47</td>\n",
       "      <td>395.64</td>\n",
       "      <td>4498.24</td>\n",
       "      <td>...</td>\n",
       "      <td>3619.76</td>\n",
       "      <td>7028.43</td>\n",
       "      <td>3522.04</td>\n",
       "      <td>6815.19</td>\n",
       "      <td>1666.04</td>\n",
       "      <td>1881.10</td>\n",
       "      <td>7778.47</td>\n",
       "      <td>3206.17</td>\n",
       "      <td>1944.31</td>\n",
       "      <td>7509.99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>营业盈余</th>\n",
       "      <td>2311.75</td>\n",
       "      <td>6633.87</td>\n",
       "      <td>4739.05</td>\n",
       "      <td>4387.52</td>\n",
       "      <td>991.60</td>\n",
       "      <td>4819.08</td>\n",
       "      <td>1770.69</td>\n",
       "      <td>2432.85</td>\n",
       "      <td>1329.50</td>\n",
       "      <td>9736.00</td>\n",
       "      <td>...</td>\n",
       "      <td>50197.37</td>\n",
       "      <td>38320.74</td>\n",
       "      <td>285.90</td>\n",
       "      <td>1835.35</td>\n",
       "      <td>590.75</td>\n",
       "      <td>575.24</td>\n",
       "      <td>1323.11</td>\n",
       "      <td>488.64</td>\n",
       "      <td>580.48</td>\n",
       "      <td>295.18</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>增加值合计</th>\n",
       "      <td>82174.72</td>\n",
       "      <td>30057.08</td>\n",
       "      <td>12534.65</td>\n",
       "      <td>11195.97</td>\n",
       "      <td>6970.75</td>\n",
       "      <td>14447.64</td>\n",
       "      <td>5560.16</td>\n",
       "      <td>7100.08</td>\n",
       "      <td>3454.82</td>\n",
       "      <td>28390.92</td>\n",
       "      <td>...</td>\n",
       "      <td>83617.14</td>\n",
       "      <td>76966.75</td>\n",
       "      <td>31852.71</td>\n",
       "      <td>28106.97</td>\n",
       "      <td>4555.69</td>\n",
       "      <td>15727.67</td>\n",
       "      <td>37329.22</td>\n",
       "      <td>21879.04</td>\n",
       "      <td>7801.04</td>\n",
       "      <td>45473.97</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>总投入</th>\n",
       "      <td>133168.33</td>\n",
       "      <td>55653.36</td>\n",
       "      <td>71084.08</td>\n",
       "      <td>43383.94</td>\n",
       "      <td>10668.26</td>\n",
       "      <td>75738.69</td>\n",
       "      <td>26541.32</td>\n",
       "      <td>27439.89</td>\n",
       "      <td>15399.38</td>\n",
       "      <td>119124.88</td>\n",
       "      <td>...</td>\n",
       "      <td>122937.02</td>\n",
       "      <td>106663.35</td>\n",
       "      <td>96256.26</td>\n",
       "      <td>75134.24</td>\n",
       "      <td>11316.40</td>\n",
       "      <td>30033.76</td>\n",
       "      <td>53248.76</td>\n",
       "      <td>51374.96</td>\n",
       "      <td>15584.34</td>\n",
       "      <td>78086.48</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>7 rows × 40 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "             农林牧渔       采矿业      农副食品      食品饮料        烟草      纺织服装      木材家具  \\\n",
       "中间投入合计   50993.60  25596.27  58549.43  32187.97   3697.50  61291.06  20981.16   \n",
       "劳动者报酬    82110.94  10305.92   4647.59   4060.31    520.91   7807.02   2533.97   \n",
       "生产税净额    -4552.82   8045.40   1305.11   1693.35   5294.34    105.55    543.95   \n",
       "固定资产折旧    2304.86   5071.90   1842.91   1054.79    163.91   1715.99    711.55   \n",
       "营业盈余      2311.75   6633.87   4739.05   4387.52    991.60   4819.08   1770.69   \n",
       "增加值合计    82174.72  30057.08  12534.65  11195.97   6970.75  14447.64   5560.16   \n",
       "总投入     133168.33  55653.36  71084.08  43383.94  10668.26  75738.69  26541.32   \n",
       "\n",
       "            造纸印刷      文体工美       石油化工  ...         金融        房地产   租赁和商务服务  \\\n",
       "中间投入合计  20339.82  11944.56   90733.96  ...   39319.88   29696.59  64403.55   \n",
       "劳动者报酬    2640.96   1885.85    5571.27  ...   21528.20   19273.31  25275.72   \n",
       "生产税净额     785.80   -156.17    8585.40  ...    8271.81   12344.27   2769.05   \n",
       "固定资产折旧   1240.47    395.64    4498.24  ...    3619.76    7028.43   3522.04   \n",
       "营业盈余     2432.85   1329.50    9736.00  ...   50197.37   38320.74    285.90   \n",
       "增加值合计    7100.08   3454.82   28390.92  ...   83617.14   76966.75  31852.71   \n",
       "总投入     27439.89  15399.38  119124.88  ...  122937.02  106663.35  96256.26   \n",
       "\n",
       "          科学技术研究  水利生态设施管理  居民服务其他服务        教育      卫生社会    文化体育娱乐  公共管理和社会组织  \n",
       "中间投入合计  47027.27   6760.71  14306.09  15919.54  29495.92   7783.30   32612.51  \n",
       "劳动者报酬   18126.00   2282.29  12768.98  28165.05  18168.49   5117.25   37487.62  \n",
       "生产税净额    1330.43     16.62    502.35     62.58     15.74    159.00     181.18  \n",
       "固定资产折旧   6815.19   1666.04   1881.10   7778.47   3206.17   1944.31    7509.99  \n",
       "营业盈余     1835.35    590.75    575.24   1323.11    488.64    580.48     295.18  \n",
       "增加值合计   28106.97   4555.69  15727.67  37329.22  21879.04   7801.04   45473.97  \n",
       "总投入     75134.24  11316.40  30033.76  53248.76  51374.96  15584.34   78086.48  \n",
       "\n",
       "[7 rows x 40 columns]"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "io20.q3"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "6fc919a2",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=增加值合计<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "增加值合计",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "增加值合计",
         "offsetgroup": "增加值合计",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "UrgehesP9EDsUbgeRVrdQDMzMzNTe8hAj8L1KPzdxUAAAAAAwDq7QLgehevRN8xAXI/C9Si4tUCuR+F6FLy7QHE9Ctej/apAFK5H4bq520DNzMzMzMPAQIXrUbge9pZApHA9CvfhwEAAAAAAgITWQKRwPQq3hs5AhetRuN5ax0BxPQrX49fIQGZmZmZmPMhAPQrXo5Ahw0C4HoXr0WnMQLgehetRMKlApHA9Cleyx0DD9ShcDz/QQI/C9Sjcx8dAw/UoXH882UA9CtejlJTxQArXo3AFSPdA4XoUrq9N5kDhehSuB2zMQEjhehQu4OVA16NwPRJq9EAAAAAAbMryQArXo3AtG99ASOF6FL5y20A9CtejsMuxQClcj8LVt85ApHA9Cic64kD2KFyPwl3VQNejcD0Keb5ApHA9Cj805kA=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "group",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "px.bar(io20.q3.loc[['增加值合计'],:].T, barmode='group')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "c1bd97be",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=劳动者报酬<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "劳动者报酬",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "劳动者报酬",
         "offsetgroup": "劳动者报酬",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "pHA9Cu8L9EApXI/C9SDEQKRwPQqXJ7JAhetRuJ64r0DhehSuR0eAQOxRuB4Ff75APQrXo/DLo0BSuB6F66GkQGZmZmZmd51A7FG4HkXDtUAK16NwveWnQI/C9Shc03xAj8L1KNwUrEAAAAAAAEi9QI/C9Shcj65A4XoUrserq0CkcD0K13S2QGZmZmbmWrJAj8L1KBzvs0AzMzMzs7esQFyPwvUoqJtASOF6FC5nskD2KFyPgrzBQHsUrkdhZKtAPQrXo3AwvkB7FK5Hke7mQAAAAABoYelAXI/C9RiD1kAUrkfhWp3AQOF6FK5XNtRAzczMzAwG1UBxPQrXU9LSQEjhehTurthAAAAAAICz0UCuR+F6lNShQArXo3B98MhAMzMzM0OB20DD9ShcH77RQAAAAABA/bNAcT0K1/NN4kA=",
          "dtype": "f8"
         },
         "yaxis": "y"
        },
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=生产税净额<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "生产税净额",
         "marker": {
          "color": "#EF553B",
          "pattern": {
           "shape": ""
          }
         },
         "name": "生产税净额",
         "offsetgroup": "生产税净额",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "uB6F69HIscBmZmZmZm2/QD0K16NwZJRAZmZmZmZ1mkCkcD0KV660QDMzMzMzY1pAmpmZmZn/gEBmZmZmZo6IQD0K16NwhWPAMzMzM7PEwEDsUbgehQmSQB+F61G4vlpAuB6F61F6jUCuR+F6lFaiQFK4HoXrQ5pA7FG4HoVpn0DNzMzMzIeRQGZmZmZmIZpAmpmZmZm7lkCPwvUo3DSwQKRwPQrXW2lAZmZmZmZifECuR+F6FEyMwBSuR+F6Y51AexSuR+FpokC4HoXr0SnDQFyPwvUoocJAexSuR+GaikAAAAAAAABhQFyPwvUodZRA4XoUrucnwED2KFyPIhzIQJqZmZkZoqVAH4XrUbjJlEAfhetRuJ4wQJqZmZmZZX9ACtejcD1KT0B7FK5H4XovQAAAAAAA4GNA9ihcj8KlZkA=",
          "dtype": "f8"
         },
         "yaxis": "y"
        },
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=营业盈余<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "营业盈余",
         "marker": {
          "color": "#00cc96",
          "pattern": {
           "shape": ""
          }
         },
         "name": "营业盈余",
         "offsetgroup": "营业盈余",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "AAAAAIAPokCF61G43um5QM3MzMwMg7JA7FG4HoUjsUDNzMzMzPyOQK5H4XoU07JA9ihcj8Kqm0AzMzMzswGjQAAAAAAAxpRAAAAAAAAEw0AK16NwPVSsQClcj8L1OoBAcT0K1yNkpUAK16NwvbrCQM3MzMyMz7pAj8L1KNwbsUDXo3A9ygewQJqZmZmZELFAexSuR+Gen0DhehSuhz60QBSuR+F6LItA7FG4HgX5tEAUrkfhOuyzQPYoXI9CPLdAuB6F69GFskCkcD0K11bIQHE9CtcDe9VAMzMzMzNem0CkcD0K1yuUQEjhehSuxsNAcT0K16uC6EDhehSuF7biQGZmZmZm3nFAZmZmZmatnEAAAAAAAHaCQFK4HoXr+YFAPQrXo3CslEAK16NwPYp+QKRwPQrXI4JAexSuR+FyckA=",
          "dtype": "f8"
         },
         "yaxis": "y"
        },
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=固定资产折旧<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "固定资产折旧",
         "marker": {
          "color": "#ab63fa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "固定资产折旧",
         "offsetgroup": "固定资产折旧",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "H4XrUbgBokBmZmZm5s+zQHE9Ctejy5xAXI/C9Sh7kECF61G4Hn1kQClcj8L1z5pAZmZmZmY8hkB7FK5H4WGTQArXo3A9unhACtejcD2SsUBSuB6F60GHQOxRuB6F33dA7FG4HoVglUAUrkfhelKsQClcj8J1yqhAPQrXo3Cmn0D2KFyPwkSbQPYoXI/CE5pAmpmZmZn1kkCamZmZmRGYQHsUrkfh2ndAj8L1KFz5mEDsUbgeBUGqQDMzMzMzQ4pA7FG4HmWDxUB7FK5H4aalQBSuR+FaI8dAj8L1KIyN00B7FK5HYQqyQClcj8K1vshA7FG4HoVHrEBI4XoUbnS7QK5H4XoUhKtAPQrXozCfukBcj8L1KAiaQGZmZmZmZJ1AH4XrUXhivkCkcD0KVwypQArXo3A9YZ5ACtejcP1VvUA=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "group",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "px.bar(io20.q3.loc[['劳动者报酬', '生产税净额', '营业盈余', '固定资产折旧'],:].T, barmode='group')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "a546c7f0",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=0<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "0",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "0",
         "offsetgroup": "0",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "YPELS6T57z8qm6DBt/HVPzPFuYTZutc/GJfAnco11z9mnStNXyGzPyY+JJeuSuE/Dg50Cssq3T/M/Ni6Oc7XP5Ovy5Owd+E/pWSB7zMeyT/u0hYeo87WP9I0EKEYFtQ/4MH8XAGd2j+7HtjjU87UP+HLvvuHBNA/6sPTcfP00j/L4ZxZ7OzcPzavuEY1PNg/d/MFfuer4D+y4z792ivQP/GX+PBYkeE/FnDDG/3Z2D++4M2aqnfhPwTbh8cHbtI/tA8tYeIj0z8Bpivl1N7kP5VTqMxQceE/aXYA51Am4D+rEkrqzbTiP7Q6zKEUkd0/GgLxFUB60D9+eb5EuwbQP7FEyUKBZOk/MRldhvei5D9iJoMy/gfgP7F/eKvr+uk/bbHkzuUk6D+bDn36r5LqP0Nxake1/eQ/M6jBakhh6j8=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "group",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 劳动者报酬占比\n",
    "px.bar(io20.q3.loc['劳动者报酬',:]/io20.q3.loc['增加值合计',:].T, barmode='group')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "0a4b3ae5",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=0<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "0",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "0",
         "offsetgroup": "0",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "Ho74XKvOnD+m/GDSMUDMP6t7SpFlMtg/zfBhEKAU2T9JMfF/TDXCP2ja1FP2WNU/lyKXJKdh1D+m+YW//u3VP7+ahrH3oNg/u9D0KYLy1T9AMwkQYQnbP1sRrcWHntY/A10x09RF1D/fB2DJ3J3aP9vZiPXpGtw/oZD1TBpx1z+A5Yq7+qXUP7h2MW0YiNY/jIbY7QVyyj8maBKOuczWPzi7CQ7JQtE/iP91YFZS3D9/CzFg5p7TPxLCZ3QmRN8/oxwYdrF8xz/0j1GktybGP5STf8hZhs0/ul799Raioz+JHgq96LW2P2GKslO97cw/lsQmh9o14z8TWSI0Yd3fP3Led4HYYYI/3iibOmu3sD+sERn8H5nAP9KsQ1r2uaI/jdg2FsMloj9pLqF+pd6WP28kk5CSDLM/0MEzfYCWej8=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "group",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 营业盈余占比\n",
    "px.bar(io20.q3.loc['营业盈余',:]/io20.q3.loc['增加值合计',:].T, barmode='group')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "035915e3",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=0<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "0",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "0",
         "offsetgroup": "0",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "oWQrkrC4nD8PwxHIWJnFP9y6qie50cI/Q78N/j8euD/C9ODACxSYPxIAss3oZ74/NiaDy2phwD95mAt091zGP33VjrQRUb0/zhK4671HxD8dRAR8SjK2Pz44/VujotA/UgJ+jmZCxD+BFao63x/EP4/VGAPc/Mk/et6uVtCuxT//mnXh3I/BP4lmLk0uN8E/W3oqDna2vz/tCHQzYhu7P2aY/FM7Tr4/r8Yz5s3cwD9KrhaIHdvJP0wCJkZ3q7E/NOec73NH2z9YpTcGmrSjP5ELM0Cazb8/9DDZx7sN3D8lUVspyE/UPyt+fiw9GdI/B3197hAqpj9rz4eFmWC3P2HDgf59Trw/EcV7iF0Jzz9PRgQ5t2fXP+vv3Wpmnr4/VWR4ywasyj90vAWN2MHCPyIB0NkB588/GPiD8ZsjxT8=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "group",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 固定资产折旧占比\n",
    "px.bar(io20.q3.loc['固定资产折旧',:]/io20.q3.loc['增加值合计',:].T, barmode='group')"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b978a36e",
   "metadata": {},
   "source": [
    "# 直接消耗系数"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "1fe0a235",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>农林牧渔</th>\n",
       "      <th>采矿业</th>\n",
       "      <th>农副食品</th>\n",
       "      <th>食品饮料</th>\n",
       "      <th>烟草</th>\n",
       "      <th>纺织服装</th>\n",
       "      <th>木材家具</th>\n",
       "      <th>造纸印刷</th>\n",
       "      <th>文体工美</th>\n",
       "      <th>石油化工</th>\n",
       "      <th>...</th>\n",
       "      <th>金融</th>\n",
       "      <th>房地产</th>\n",
       "      <th>租赁和商务服务</th>\n",
       "      <th>科学技术研究</th>\n",
       "      <th>水利生态设施管理</th>\n",
       "      <th>居民服务其他服务</th>\n",
       "      <th>教育</th>\n",
       "      <th>卫生社会</th>\n",
       "      <th>文化体育娱乐</th>\n",
       "      <th>公共管理和社会组织</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>农林牧渔</th>\n",
       "      <td>0.137521</td>\n",
       "      <td>0.000424</td>\n",
       "      <td>0.524044</td>\n",
       "      <td>0.203954</td>\n",
       "      <td>0.061787</td>\n",
       "      <td>0.108275</td>\n",
       "      <td>0.120467</td>\n",
       "      <td>0.063002</td>\n",
       "      <td>0.029059</td>\n",
       "      <td>0.009152</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000055</td>\n",
       "      <td>0.000316</td>\n",
       "      <td>0.007650</td>\n",
       "      <td>0.007161</td>\n",
       "      <td>0.084122</td>\n",
       "      <td>0.007553</td>\n",
       "      <td>0.001150</td>\n",
       "      <td>0.001179</td>\n",
       "      <td>0.003066</td>\n",
       "      <td>0.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>采矿业</th>\n",
       "      <td>0.000454</td>\n",
       "      <td>0.126535</td>\n",
       "      <td>0.001821</td>\n",
       "      <td>0.003202</td>\n",
       "      <td>0.000118</td>\n",
       "      <td>0.002417</td>\n",
       "      <td>0.001109</td>\n",
       "      <td>0.013162</td>\n",
       "      <td>0.005001</td>\n",
       "      <td>0.218723</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000015</td>\n",
       "      <td>0.000060</td>\n",
       "      <td>0.000002</td>\n",
       "      <td>0.000991</td>\n",
       "      <td>0.000812</td>\n",
       "      <td>0.001100</td>\n",
       "      <td>0.001147</td>\n",
       "      <td>0.000777</td>\n",
       "      <td>0.000313</td>\n",
       "      <td>0.000754</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>农副食品</th>\n",
       "      <td>0.080469</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.140079</td>\n",
       "      <td>0.169296</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.016627</td>\n",
       "      <td>0.000559</td>\n",
       "      <td>0.000047</td>\n",
       "      <td>0.001422</td>\n",
       "      <td>0.013595</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.008911</td>\n",
       "      <td>0.001339</td>\n",
       "      <td>0.007513</td>\n",
       "      <td>0.004483</td>\n",
       "      <td>0.012192</td>\n",
       "      <td>0.003470</td>\n",
       "      <td>0.004133</td>\n",
       "      <td>0.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>食品饮料</th>\n",
       "      <td>0.000588</td>\n",
       "      <td>0.001489</td>\n",
       "      <td>0.018530</td>\n",
       "      <td>0.113241</td>\n",
       "      <td>0.004423</td>\n",
       "      <td>0.001349</td>\n",
       "      <td>0.002177</td>\n",
       "      <td>0.001808</td>\n",
       "      <td>0.002263</td>\n",
       "      <td>0.007328</td>\n",
       "      <td>...</td>\n",
       "      <td>0.001639</td>\n",
       "      <td>0.002650</td>\n",
       "      <td>0.004763</td>\n",
       "      <td>0.008096</td>\n",
       "      <td>0.008272</td>\n",
       "      <td>0.017068</td>\n",
       "      <td>0.006727</td>\n",
       "      <td>0.009249</td>\n",
       "      <td>0.046660</td>\n",
       "      <td>0.005186</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>烟草</th>\n",
       "      <td>0.000182</td>\n",
       "      <td>0.001116</td>\n",
       "      <td>0.000451</td>\n",
       "      <td>0.000371</td>\n",
       "      <td>0.122775</td>\n",
       "      <td>0.000679</td>\n",
       "      <td>0.001965</td>\n",
       "      <td>0.001999</td>\n",
       "      <td>0.000934</td>\n",
       "      <td>0.002481</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000684</td>\n",
       "      <td>0.001732</td>\n",
       "      <td>0.003539</td>\n",
       "      <td>0.001310</td>\n",
       "      <td>0.004888</td>\n",
       "      <td>0.003465</td>\n",
       "      <td>0.004561</td>\n",
       "      <td>0.001093</td>\n",
       "      <td>0.011267</td>\n",
       "      <td>0.001496</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>纺织服装</th>\n",
       "      <td>0.000192</td>\n",
       "      <td>0.004384</td>\n",
       "      <td>0.002404</td>\n",
       "      <td>0.003367</td>\n",
       "      <td>0.004941</td>\n",
       "      <td>0.415701</td>\n",
       "      <td>0.030555</td>\n",
       "      <td>0.004971</td>\n",
       "      <td>0.075767</td>\n",
       "      <td>0.003471</td>\n",
       "      <td>...</td>\n",
       "      <td>0.003830</td>\n",
       "      <td>0.001974</td>\n",
       "      <td>0.017329</td>\n",
       "      <td>0.005499</td>\n",
       "      <td>0.012768</td>\n",
       "      <td>0.008335</td>\n",
       "      <td>0.002911</td>\n",
       "      <td>0.018610</td>\n",
       "      <td>0.030378</td>\n",
       "      <td>0.030534</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>木材家具</th>\n",
       "      <td>0.000252</td>\n",
       "      <td>0.007146</td>\n",
       "      <td>0.000186</td>\n",
       "      <td>0.001243</td>\n",
       "      <td>0.001633</td>\n",
       "      <td>0.001213</td>\n",
       "      <td>0.308126</td>\n",
       "      <td>0.009834</td>\n",
       "      <td>0.036404</td>\n",
       "      <td>0.001077</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000386</td>\n",
       "      <td>0.000512</td>\n",
       "      <td>0.000623</td>\n",
       "      <td>0.000601</td>\n",
       "      <td>0.002459</td>\n",
       "      <td>0.002117</td>\n",
       "      <td>0.000644</td>\n",
       "      <td>0.000169</td>\n",
       "      <td>0.002052</td>\n",
       "      <td>0.004729</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>造纸印刷</th>\n",
       "      <td>0.000142</td>\n",
       "      <td>0.000415</td>\n",
       "      <td>0.003183</td>\n",
       "      <td>0.015234</td>\n",
       "      <td>0.034033</td>\n",
       "      <td>0.004090</td>\n",
       "      <td>0.007847</td>\n",
       "      <td>0.299443</td>\n",
       "      <td>0.055488</td>\n",
       "      <td>0.002562</td>\n",
       "      <td>...</td>\n",
       "      <td>0.008506</td>\n",
       "      <td>0.002674</td>\n",
       "      <td>0.062639</td>\n",
       "      <td>0.007878</td>\n",
       "      <td>0.001049</td>\n",
       "      <td>0.001485</td>\n",
       "      <td>0.014886</td>\n",
       "      <td>0.000364</td>\n",
       "      <td>0.037772</td>\n",
       "      <td>0.015372</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>文体工美</th>\n",
       "      <td>0.000628</td>\n",
       "      <td>0.000257</td>\n",
       "      <td>0.000233</td>\n",
       "      <td>0.001214</td>\n",
       "      <td>0.000184</td>\n",
       "      <td>0.000662</td>\n",
       "      <td>0.001624</td>\n",
       "      <td>0.001869</td>\n",
       "      <td>0.074250</td>\n",
       "      <td>0.000550</td>\n",
       "      <td>...</td>\n",
       "      <td>0.007794</td>\n",
       "      <td>0.002338</td>\n",
       "      <td>0.009575</td>\n",
       "      <td>0.002928</td>\n",
       "      <td>0.008183</td>\n",
       "      <td>0.004374</td>\n",
       "      <td>0.008863</td>\n",
       "      <td>0.000479</td>\n",
       "      <td>0.010057</td>\n",
       "      <td>0.008777</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>石油化工</th>\n",
       "      <td>0.060769</td>\n",
       "      <td>0.049093</td>\n",
       "      <td>0.001520</td>\n",
       "      <td>0.008558</td>\n",
       "      <td>0.005589</td>\n",
       "      <td>0.021273</td>\n",
       "      <td>0.064308</td>\n",
       "      <td>0.083916</td>\n",
       "      <td>0.070522</td>\n",
       "      <td>0.295863</td>\n",
       "      <td>...</td>\n",
       "      <td>0.003279</td>\n",
       "      <td>0.001751</td>\n",
       "      <td>0.024476</td>\n",
       "      <td>0.064334</td>\n",
       "      <td>0.066969</td>\n",
       "      <td>0.049082</td>\n",
       "      <td>0.019350</td>\n",
       "      <td>0.001675</td>\n",
       "      <td>0.013339</td>\n",
       "      <td>0.008752</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>医药制品</th>\n",
       "      <td>0.004559</td>\n",
       "      <td>0.000121</td>\n",
       "      <td>0.000453</td>\n",
       "      <td>0.001126</td>\n",
       "      <td>0.000010</td>\n",
       "      <td>0.000116</td>\n",
       "      <td>0.000010</td>\n",
       "      <td>0.002376</td>\n",
       "      <td>0.000013</td>\n",
       "      <td>0.001001</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000058</td>\n",
       "      <td>0.000014</td>\n",
       "      <td>0.000185</td>\n",
       "      <td>0.004862</td>\n",
       "      <td>0.000757</td>\n",
       "      <td>0.000614</td>\n",
       "      <td>0.001334</td>\n",
       "      <td>0.318922</td>\n",
       "      <td>0.000158</td>\n",
       "      <td>0.000208</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>化学纤维</th>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.006543</td>\n",
       "      <td>0.052288</td>\n",
       "      <td>0.000600</td>\n",
       "      <td>0.000608</td>\n",
       "      <td>0.012507</td>\n",
       "      <td>0.000654</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000406</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>橡胶塑料</th>\n",
       "      <td>0.006514</td>\n",
       "      <td>0.004245</td>\n",
       "      <td>0.005197</td>\n",
       "      <td>0.017914</td>\n",
       "      <td>0.003516</td>\n",
       "      <td>0.014497</td>\n",
       "      <td>0.014748</td>\n",
       "      <td>0.022803</td>\n",
       "      <td>0.055045</td>\n",
       "      <td>0.014654</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000069</td>\n",
       "      <td>0.000357</td>\n",
       "      <td>0.003361</td>\n",
       "      <td>0.003617</td>\n",
       "      <td>0.016270</td>\n",
       "      <td>0.009061</td>\n",
       "      <td>0.000106</td>\n",
       "      <td>0.001055</td>\n",
       "      <td>0.001668</td>\n",
       "      <td>0.000294</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>非金属制品</th>\n",
       "      <td>0.000396</td>\n",
       "      <td>0.005368</td>\n",
       "      <td>0.000423</td>\n",
       "      <td>0.010370</td>\n",
       "      <td>0.000831</td>\n",
       "      <td>0.000754</td>\n",
       "      <td>0.007238</td>\n",
       "      <td>0.000748</td>\n",
       "      <td>0.004575</td>\n",
       "      <td>0.005748</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000019</td>\n",
       "      <td>0.000031</td>\n",
       "      <td>0.000271</td>\n",
       "      <td>0.003284</td>\n",
       "      <td>0.007242</td>\n",
       "      <td>0.000319</td>\n",
       "      <td>0.002123</td>\n",
       "      <td>0.000635</td>\n",
       "      <td>0.000031</td>\n",
       "      <td>0.000016</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>黑色金属冶炼压延</th>\n",
       "      <td>0.000174</td>\n",
       "      <td>0.016075</td>\n",
       "      <td>0.000209</td>\n",
       "      <td>0.000286</td>\n",
       "      <td>0.000001</td>\n",
       "      <td>0.000505</td>\n",
       "      <td>0.008922</td>\n",
       "      <td>0.000605</td>\n",
       "      <td>0.012674</td>\n",
       "      <td>0.000744</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000002</td>\n",
       "      <td>0.000001</td>\n",
       "      <td>0.000678</td>\n",
       "      <td>0.001241</td>\n",
       "      <td>0.000028</td>\n",
       "      <td>0.000050</td>\n",
       "      <td>0.000001</td>\n",
       "      <td>0.000005</td>\n",
       "      <td>0.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>有色金属冶炼压延</th>\n",
       "      <td>0.000007</td>\n",
       "      <td>0.001124</td>\n",
       "      <td>0.000016</td>\n",
       "      <td>0.000225</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000291</td>\n",
       "      <td>0.003415</td>\n",
       "      <td>0.003774</td>\n",
       "      <td>0.117120</td>\n",
       "      <td>0.007242</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000002</td>\n",
       "      <td>0.000353</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000487</td>\n",
       "      <td>0.000085</td>\n",
       "      <td>0.000002</td>\n",
       "      <td>0.000002</td>\n",
       "      <td>0.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>金属制品</th>\n",
       "      <td>0.000618</td>\n",
       "      <td>0.020939</td>\n",
       "      <td>0.000898</td>\n",
       "      <td>0.006150</td>\n",
       "      <td>0.002039</td>\n",
       "      <td>0.002858</td>\n",
       "      <td>0.023213</td>\n",
       "      <td>0.002979</td>\n",
       "      <td>0.018081</td>\n",
       "      <td>0.002889</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000071</td>\n",
       "      <td>0.001122</td>\n",
       "      <td>0.026091</td>\n",
       "      <td>0.025338</td>\n",
       "      <td>0.009821</td>\n",
       "      <td>0.010996</td>\n",
       "      <td>0.001425</td>\n",
       "      <td>0.000106</td>\n",
       "      <td>0.000980</td>\n",
       "      <td>0.001295</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>通用设备</th>\n",
       "      <td>0.000605</td>\n",
       "      <td>0.011128</td>\n",
       "      <td>0.000997</td>\n",
       "      <td>0.001536</td>\n",
       "      <td>0.000745</td>\n",
       "      <td>0.002415</td>\n",
       "      <td>0.004817</td>\n",
       "      <td>0.002024</td>\n",
       "      <td>0.003858</td>\n",
       "      <td>0.005766</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000524</td>\n",
       "      <td>0.000289</td>\n",
       "      <td>0.000308</td>\n",
       "      <td>0.001248</td>\n",
       "      <td>0.002240</td>\n",
       "      <td>0.000436</td>\n",
       "      <td>0.001220</td>\n",
       "      <td>0.000212</td>\n",
       "      <td>0.000332</td>\n",
       "      <td>0.000155</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>专用设备</th>\n",
       "      <td>0.007090</td>\n",
       "      <td>0.026041</td>\n",
       "      <td>0.000202</td>\n",
       "      <td>0.000783</td>\n",
       "      <td>0.000827</td>\n",
       "      <td>0.001614</td>\n",
       "      <td>0.003041</td>\n",
       "      <td>0.006442</td>\n",
       "      <td>0.001545</td>\n",
       "      <td>0.003386</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000751</td>\n",
       "      <td>0.000008</td>\n",
       "      <td>0.000544</td>\n",
       "      <td>0.000267</td>\n",
       "      <td>0.002084</td>\n",
       "      <td>0.000533</td>\n",
       "      <td>0.000251</td>\n",
       "      <td>0.032470</td>\n",
       "      <td>0.000072</td>\n",
       "      <td>0.000037</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>汽车及零部件制造</th>\n",
       "      <td>0.001058</td>\n",
       "      <td>0.002498</td>\n",
       "      <td>0.000150</td>\n",
       "      <td>0.000153</td>\n",
       "      <td>0.000016</td>\n",
       "      <td>0.000335</td>\n",
       "      <td>0.000448</td>\n",
       "      <td>0.000083</td>\n",
       "      <td>0.001093</td>\n",
       "      <td>0.000306</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000235</td>\n",
       "      <td>0.000027</td>\n",
       "      <td>0.033592</td>\n",
       "      <td>0.005036</td>\n",
       "      <td>0.015528</td>\n",
       "      <td>0.026843</td>\n",
       "      <td>0.000216</td>\n",
       "      <td>0.000092</td>\n",
       "      <td>0.000585</td>\n",
       "      <td>0.002971</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>其他交通设备</th>\n",
       "      <td>0.001227</td>\n",
       "      <td>0.000383</td>\n",
       "      <td>0.000032</td>\n",
       "      <td>0.000094</td>\n",
       "      <td>0.000001</td>\n",
       "      <td>0.000092</td>\n",
       "      <td>0.000263</td>\n",
       "      <td>0.000019</td>\n",
       "      <td>0.000214</td>\n",
       "      <td>0.000164</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000031</td>\n",
       "      <td>0.000002</td>\n",
       "      <td>0.000032</td>\n",
       "      <td>0.000342</td>\n",
       "      <td>0.001289</td>\n",
       "      <td>0.015124</td>\n",
       "      <td>0.000034</td>\n",
       "      <td>0.000412</td>\n",
       "      <td>0.000121</td>\n",
       "      <td>0.000621</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>电气机械</th>\n",
       "      <td>0.000148</td>\n",
       "      <td>0.003724</td>\n",
       "      <td>0.000326</td>\n",
       "      <td>0.000828</td>\n",
       "      <td>0.000587</td>\n",
       "      <td>0.000654</td>\n",
       "      <td>0.001080</td>\n",
       "      <td>0.000520</td>\n",
       "      <td>0.008595</td>\n",
       "      <td>0.000818</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000090</td>\n",
       "      <td>0.000054</td>\n",
       "      <td>0.013242</td>\n",
       "      <td>0.022878</td>\n",
       "      <td>0.012844</td>\n",
       "      <td>0.010837</td>\n",
       "      <td>0.000177</td>\n",
       "      <td>0.000937</td>\n",
       "      <td>0.000673</td>\n",
       "      <td>0.002324</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>计算机通信设备</th>\n",
       "      <td>0.000220</td>\n",
       "      <td>0.000696</td>\n",
       "      <td>0.000318</td>\n",
       "      <td>0.000731</td>\n",
       "      <td>0.000221</td>\n",
       "      <td>0.000287</td>\n",
       "      <td>0.000381</td>\n",
       "      <td>0.001585</td>\n",
       "      <td>0.017715</td>\n",
       "      <td>0.000565</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000938</td>\n",
       "      <td>0.000405</td>\n",
       "      <td>0.022978</td>\n",
       "      <td>0.043955</td>\n",
       "      <td>0.013036</td>\n",
       "      <td>0.039085</td>\n",
       "      <td>0.001621</td>\n",
       "      <td>0.001761</td>\n",
       "      <td>0.005155</td>\n",
       "      <td>0.005455</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>其他制造业</th>\n",
       "      <td>0.000153</td>\n",
       "      <td>0.004041</td>\n",
       "      <td>0.000695</td>\n",
       "      <td>0.000618</td>\n",
       "      <td>0.000648</td>\n",
       "      <td>0.002056</td>\n",
       "      <td>0.000964</td>\n",
       "      <td>0.047075</td>\n",
       "      <td>0.002211</td>\n",
       "      <td>0.003034</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000069</td>\n",
       "      <td>0.001220</td>\n",
       "      <td>0.009489</td>\n",
       "      <td>0.051213</td>\n",
       "      <td>0.012043</td>\n",
       "      <td>0.010680</td>\n",
       "      <td>0.009863</td>\n",
       "      <td>0.001034</td>\n",
       "      <td>0.006032</td>\n",
       "      <td>0.001059</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>水电燃</th>\n",
       "      <td>0.008134</td>\n",
       "      <td>0.049860</td>\n",
       "      <td>0.007256</td>\n",
       "      <td>0.010247</td>\n",
       "      <td>0.003321</td>\n",
       "      <td>0.012860</td>\n",
       "      <td>0.020132</td>\n",
       "      <td>0.023823</td>\n",
       "      <td>0.010831</td>\n",
       "      <td>0.043024</td>\n",
       "      <td>...</td>\n",
       "      <td>0.003855</td>\n",
       "      <td>0.006667</td>\n",
       "      <td>0.004536</td>\n",
       "      <td>0.008799</td>\n",
       "      <td>0.030763</td>\n",
       "      <td>0.016514</td>\n",
       "      <td>0.008285</td>\n",
       "      <td>0.007459</td>\n",
       "      <td>0.013604</td>\n",
       "      <td>0.010189</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>建筑业</th>\n",
       "      <td>0.000577</td>\n",
       "      <td>0.000379</td>\n",
       "      <td>0.000104</td>\n",
       "      <td>0.000259</td>\n",
       "      <td>0.000272</td>\n",
       "      <td>0.000299</td>\n",
       "      <td>0.000500</td>\n",
       "      <td>0.000279</td>\n",
       "      <td>0.000191</td>\n",
       "      <td>0.000313</td>\n",
       "      <td>...</td>\n",
       "      <td>0.002025</td>\n",
       "      <td>0.013307</td>\n",
       "      <td>0.000463</td>\n",
       "      <td>0.001250</td>\n",
       "      <td>0.009307</td>\n",
       "      <td>0.001761</td>\n",
       "      <td>0.006234</td>\n",
       "      <td>0.002200</td>\n",
       "      <td>0.006375</td>\n",
       "      <td>0.012505</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>批发零售</th>\n",
       "      <td>0.024364</td>\n",
       "      <td>0.021133</td>\n",
       "      <td>0.066858</td>\n",
       "      <td>0.066478</td>\n",
       "      <td>0.049886</td>\n",
       "      <td>0.065248</td>\n",
       "      <td>0.090246</td>\n",
       "      <td>0.067730</td>\n",
       "      <td>0.059675</td>\n",
       "      <td>0.037015</td>\n",
       "      <td>...</td>\n",
       "      <td>0.004665</td>\n",
       "      <td>0.003105</td>\n",
       "      <td>0.036224</td>\n",
       "      <td>0.028227</td>\n",
       "      <td>0.030797</td>\n",
       "      <td>0.028245</td>\n",
       "      <td>0.011965</td>\n",
       "      <td>0.066804</td>\n",
       "      <td>0.031045</td>\n",
       "      <td>0.014786</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>交通运输</th>\n",
       "      <td>0.019151</td>\n",
       "      <td>0.018497</td>\n",
       "      <td>0.027505</td>\n",
       "      <td>0.028264</td>\n",
       "      <td>0.016449</td>\n",
       "      <td>0.040474</td>\n",
       "      <td>0.033842</td>\n",
       "      <td>0.025341</td>\n",
       "      <td>0.031873</td>\n",
       "      <td>0.033537</td>\n",
       "      <td>...</td>\n",
       "      <td>0.011016</td>\n",
       "      <td>0.004012</td>\n",
       "      <td>0.059778</td>\n",
       "      <td>0.037464</td>\n",
       "      <td>0.039043</td>\n",
       "      <td>0.024858</td>\n",
       "      <td>0.022856</td>\n",
       "      <td>0.031168</td>\n",
       "      <td>0.033474</td>\n",
       "      <td>0.033576</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>餐饮住宿</th>\n",
       "      <td>0.001776</td>\n",
       "      <td>0.003438</td>\n",
       "      <td>0.002551</td>\n",
       "      <td>0.006297</td>\n",
       "      <td>0.005026</td>\n",
       "      <td>0.003155</td>\n",
       "      <td>0.004271</td>\n",
       "      <td>0.005101</td>\n",
       "      <td>0.003602</td>\n",
       "      <td>0.003411</td>\n",
       "      <td>...</td>\n",
       "      <td>0.023143</td>\n",
       "      <td>0.003927</td>\n",
       "      <td>0.047842</td>\n",
       "      <td>0.036399</td>\n",
       "      <td>0.012122</td>\n",
       "      <td>0.011195</td>\n",
       "      <td>0.023818</td>\n",
       "      <td>0.004712</td>\n",
       "      <td>0.032754</td>\n",
       "      <td>0.046551</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>软件和信息技术服务业</th>\n",
       "      <td>0.001787</td>\n",
       "      <td>0.002092</td>\n",
       "      <td>0.001548</td>\n",
       "      <td>0.003978</td>\n",
       "      <td>0.001492</td>\n",
       "      <td>0.003691</td>\n",
       "      <td>0.002646</td>\n",
       "      <td>0.002821</td>\n",
       "      <td>0.009055</td>\n",
       "      <td>0.002594</td>\n",
       "      <td>...</td>\n",
       "      <td>0.033759</td>\n",
       "      <td>0.008164</td>\n",
       "      <td>0.014983</td>\n",
       "      <td>0.019237</td>\n",
       "      <td>0.016475</td>\n",
       "      <td>0.006010</td>\n",
       "      <td>0.020208</td>\n",
       "      <td>0.020729</td>\n",
       "      <td>0.018580</td>\n",
       "      <td>0.062891</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>金融</th>\n",
       "      <td>0.011840</td>\n",
       "      <td>0.036544</td>\n",
       "      <td>0.004405</td>\n",
       "      <td>0.006938</td>\n",
       "      <td>0.002771</td>\n",
       "      <td>0.008252</td>\n",
       "      <td>0.009376</td>\n",
       "      <td>0.018348</td>\n",
       "      <td>0.008365</td>\n",
       "      <td>0.014727</td>\n",
       "      <td>...</td>\n",
       "      <td>0.071679</td>\n",
       "      <td>0.113129</td>\n",
       "      <td>0.068752</td>\n",
       "      <td>0.030113</td>\n",
       "      <td>0.043786</td>\n",
       "      <td>0.012719</td>\n",
       "      <td>0.026671</td>\n",
       "      <td>0.008471</td>\n",
       "      <td>0.024833</td>\n",
       "      <td>0.024593</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>房地产</th>\n",
       "      <td>0.000015</td>\n",
       "      <td>0.000410</td>\n",
       "      <td>0.000134</td>\n",
       "      <td>0.000622</td>\n",
       "      <td>0.000037</td>\n",
       "      <td>0.000381</td>\n",
       "      <td>0.000872</td>\n",
       "      <td>0.000407</td>\n",
       "      <td>0.000475</td>\n",
       "      <td>0.000137</td>\n",
       "      <td>...</td>\n",
       "      <td>0.060767</td>\n",
       "      <td>0.041376</td>\n",
       "      <td>0.060270</td>\n",
       "      <td>0.016634</td>\n",
       "      <td>0.011773</td>\n",
       "      <td>0.101630</td>\n",
       "      <td>0.040574</td>\n",
       "      <td>0.014857</td>\n",
       "      <td>0.039183</td>\n",
       "      <td>0.019714</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>租赁和商务服务</th>\n",
       "      <td>0.002350</td>\n",
       "      <td>0.024971</td>\n",
       "      <td>0.008858</td>\n",
       "      <td>0.050590</td>\n",
       "      <td>0.011338</td>\n",
       "      <td>0.017345</td>\n",
       "      <td>0.012027</td>\n",
       "      <td>0.013655</td>\n",
       "      <td>0.041177</td>\n",
       "      <td>0.014587</td>\n",
       "      <td>...</td>\n",
       "      <td>0.062668</td>\n",
       "      <td>0.061528</td>\n",
       "      <td>0.108678</td>\n",
       "      <td>0.048314</td>\n",
       "      <td>0.032869</td>\n",
       "      <td>0.024024</td>\n",
       "      <td>0.010720</td>\n",
       "      <td>0.005570</td>\n",
       "      <td>0.046284</td>\n",
       "      <td>0.031085</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>科学技术研究</th>\n",
       "      <td>0.006145</td>\n",
       "      <td>0.008762</td>\n",
       "      <td>0.000630</td>\n",
       "      <td>0.002488</td>\n",
       "      <td>0.001403</td>\n",
       "      <td>0.001943</td>\n",
       "      <td>0.003592</td>\n",
       "      <td>0.004315</td>\n",
       "      <td>0.001040</td>\n",
       "      <td>0.005953</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000684</td>\n",
       "      <td>0.000831</td>\n",
       "      <td>0.000128</td>\n",
       "      <td>0.116164</td>\n",
       "      <td>0.002921</td>\n",
       "      <td>0.000047</td>\n",
       "      <td>0.002580</td>\n",
       "      <td>0.000488</td>\n",
       "      <td>0.000204</td>\n",
       "      <td>0.000460</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>水利生态设施管理</th>\n",
       "      <td>0.001355</td>\n",
       "      <td>0.000852</td>\n",
       "      <td>0.000178</td>\n",
       "      <td>0.000647</td>\n",
       "      <td>0.000743</td>\n",
       "      <td>0.001032</td>\n",
       "      <td>0.000487</td>\n",
       "      <td>0.002843</td>\n",
       "      <td>0.000195</td>\n",
       "      <td>0.000609</td>\n",
       "      <td>...</td>\n",
       "      <td>0.001547</td>\n",
       "      <td>0.000403</td>\n",
       "      <td>0.003886</td>\n",
       "      <td>0.001786</td>\n",
       "      <td>0.031482</td>\n",
       "      <td>0.001769</td>\n",
       "      <td>0.001076</td>\n",
       "      <td>0.000826</td>\n",
       "      <td>0.002214</td>\n",
       "      <td>0.002165</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>居民服务其他服务</th>\n",
       "      <td>0.000873</td>\n",
       "      <td>0.003737</td>\n",
       "      <td>0.000538</td>\n",
       "      <td>0.003001</td>\n",
       "      <td>0.001100</td>\n",
       "      <td>0.001672</td>\n",
       "      <td>0.002822</td>\n",
       "      <td>0.003440</td>\n",
       "      <td>0.001733</td>\n",
       "      <td>0.002090</td>\n",
       "      <td>...</td>\n",
       "      <td>0.002999</td>\n",
       "      <td>0.001704</td>\n",
       "      <td>0.007847</td>\n",
       "      <td>0.012763</td>\n",
       "      <td>0.038855</td>\n",
       "      <td>0.018241</td>\n",
       "      <td>0.011996</td>\n",
       "      <td>0.007643</td>\n",
       "      <td>0.013864</td>\n",
       "      <td>0.021437</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>教育</th>\n",
       "      <td>0.000125</td>\n",
       "      <td>0.000219</td>\n",
       "      <td>0.000078</td>\n",
       "      <td>0.000163</td>\n",
       "      <td>0.000148</td>\n",
       "      <td>0.000142</td>\n",
       "      <td>0.000242</td>\n",
       "      <td>0.000100</td>\n",
       "      <td>0.000110</td>\n",
       "      <td>0.000112</td>\n",
       "      <td>...</td>\n",
       "      <td>0.002523</td>\n",
       "      <td>0.000257</td>\n",
       "      <td>0.000599</td>\n",
       "      <td>0.000846</td>\n",
       "      <td>0.000754</td>\n",
       "      <td>0.000630</td>\n",
       "      <td>0.014453</td>\n",
       "      <td>0.001694</td>\n",
       "      <td>0.001573</td>\n",
       "      <td>0.009495</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>卫生社会</th>\n",
       "      <td>0.000094</td>\n",
       "      <td>0.000622</td>\n",
       "      <td>0.000113</td>\n",
       "      <td>0.000118</td>\n",
       "      <td>0.000113</td>\n",
       "      <td>0.000281</td>\n",
       "      <td>0.000314</td>\n",
       "      <td>0.000404</td>\n",
       "      <td>0.000130</td>\n",
       "      <td>0.000866</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000316</td>\n",
       "      <td>0.000012</td>\n",
       "      <td>0.000061</td>\n",
       "      <td>0.000200</td>\n",
       "      <td>0.000622</td>\n",
       "      <td>0.000267</td>\n",
       "      <td>0.000429</td>\n",
       "      <td>0.005895</td>\n",
       "      <td>0.000549</td>\n",
       "      <td>0.003230</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>文化体育娱乐</th>\n",
       "      <td>0.000076</td>\n",
       "      <td>0.001053</td>\n",
       "      <td>0.000420</td>\n",
       "      <td>0.001143</td>\n",
       "      <td>0.000923</td>\n",
       "      <td>0.001168</td>\n",
       "      <td>0.001107</td>\n",
       "      <td>0.000773</td>\n",
       "      <td>0.000627</td>\n",
       "      <td>0.000772</td>\n",
       "      <td>...</td>\n",
       "      <td>0.008695</td>\n",
       "      <td>0.001235</td>\n",
       "      <td>0.004108</td>\n",
       "      <td>0.003257</td>\n",
       "      <td>0.003685</td>\n",
       "      <td>0.003781</td>\n",
       "      <td>0.004495</td>\n",
       "      <td>0.000671</td>\n",
       "      <td>0.059244</td>\n",
       "      <td>0.008411</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>公共管理和社会组织</th>\n",
       "      <td>0.000296</td>\n",
       "      <td>0.000111</td>\n",
       "      <td>0.000124</td>\n",
       "      <td>0.000205</td>\n",
       "      <td>0.000102</td>\n",
       "      <td>0.000252</td>\n",
       "      <td>0.000160</td>\n",
       "      <td>0.000183</td>\n",
       "      <td>0.000216</td>\n",
       "      <td>0.000151</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000453</td>\n",
       "      <td>0.001219</td>\n",
       "      <td>0.001326</td>\n",
       "      <td>0.000845</td>\n",
       "      <td>0.000739</td>\n",
       "      <td>0.000537</td>\n",
       "      <td>0.001669</td>\n",
       "      <td>0.000238</td>\n",
       "      <td>0.000799</td>\n",
       "      <td>0.026520</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>40 rows × 40 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                农林牧渔       采矿业      农副食品      食品饮料        烟草      纺织服装  \\\n",
       "农林牧渔        0.137521  0.000424  0.524044  0.203954  0.061787  0.108275   \n",
       "采矿业         0.000454  0.126535  0.001821  0.003202  0.000118  0.002417   \n",
       "农副食品        0.080469  0.000000  0.140079  0.169296  0.000000  0.016627   \n",
       "食品饮料        0.000588  0.001489  0.018530  0.113241  0.004423  0.001349   \n",
       "烟草          0.000182  0.001116  0.000451  0.000371  0.122775  0.000679   \n",
       "纺织服装        0.000192  0.004384  0.002404  0.003367  0.004941  0.415701   \n",
       "木材家具        0.000252  0.007146  0.000186  0.001243  0.001633  0.001213   \n",
       "造纸印刷        0.000142  0.000415  0.003183  0.015234  0.034033  0.004090   \n",
       "文体工美        0.000628  0.000257  0.000233  0.001214  0.000184  0.000662   \n",
       "石油化工        0.060769  0.049093  0.001520  0.008558  0.005589  0.021273   \n",
       "医药制品        0.004559  0.000121  0.000453  0.001126  0.000010  0.000116   \n",
       "化学纤维        0.000000  0.000000  0.000000  0.000000  0.006543  0.052288   \n",
       "橡胶塑料        0.006514  0.004245  0.005197  0.017914  0.003516  0.014497   \n",
       "非金属制品       0.000396  0.005368  0.000423  0.010370  0.000831  0.000754   \n",
       "黑色金属冶炼压延    0.000174  0.016075  0.000209  0.000286  0.000001  0.000505   \n",
       "有色金属冶炼压延    0.000007  0.001124  0.000016  0.000225  0.000000  0.000291   \n",
       "金属制品        0.000618  0.020939  0.000898  0.006150  0.002039  0.002858   \n",
       "通用设备        0.000605  0.011128  0.000997  0.001536  0.000745  0.002415   \n",
       "专用设备        0.007090  0.026041  0.000202  0.000783  0.000827  0.001614   \n",
       "汽车及零部件制造    0.001058  0.002498  0.000150  0.000153  0.000016  0.000335   \n",
       "其他交通设备      0.001227  0.000383  0.000032  0.000094  0.000001  0.000092   \n",
       "电气机械        0.000148  0.003724  0.000326  0.000828  0.000587  0.000654   \n",
       "计算机通信设备     0.000220  0.000696  0.000318  0.000731  0.000221  0.000287   \n",
       "其他制造业       0.000153  0.004041  0.000695  0.000618  0.000648  0.002056   \n",
       "水电燃         0.008134  0.049860  0.007256  0.010247  0.003321  0.012860   \n",
       "建筑业         0.000577  0.000379  0.000104  0.000259  0.000272  0.000299   \n",
       "批发零售        0.024364  0.021133  0.066858  0.066478  0.049886  0.065248   \n",
       "交通运输        0.019151  0.018497  0.027505  0.028264  0.016449  0.040474   \n",
       "餐饮住宿        0.001776  0.003438  0.002551  0.006297  0.005026  0.003155   \n",
       "软件和信息技术服务业  0.001787  0.002092  0.001548  0.003978  0.001492  0.003691   \n",
       "金融          0.011840  0.036544  0.004405  0.006938  0.002771  0.008252   \n",
       "房地产         0.000015  0.000410  0.000134  0.000622  0.000037  0.000381   \n",
       "租赁和商务服务     0.002350  0.024971  0.008858  0.050590  0.011338  0.017345   \n",
       "科学技术研究      0.006145  0.008762  0.000630  0.002488  0.001403  0.001943   \n",
       "水利生态设施管理    0.001355  0.000852  0.000178  0.000647  0.000743  0.001032   \n",
       "居民服务其他服务    0.000873  0.003737  0.000538  0.003001  0.001100  0.001672   \n",
       "教育          0.000125  0.000219  0.000078  0.000163  0.000148  0.000142   \n",
       "卫生社会        0.000094  0.000622  0.000113  0.000118  0.000113  0.000281   \n",
       "文化体育娱乐      0.000076  0.001053  0.000420  0.001143  0.000923  0.001168   \n",
       "公共管理和社会组织   0.000296  0.000111  0.000124  0.000205  0.000102  0.000252   \n",
       "\n",
       "                木材家具      造纸印刷      文体工美      石油化工  ...        金融       房地产  \\\n",
       "农林牧渔        0.120467  0.063002  0.029059  0.009152  ...  0.000055  0.000316   \n",
       "采矿业         0.001109  0.013162  0.005001  0.218723  ...  0.000015  0.000060   \n",
       "农副食品        0.000559  0.000047  0.001422  0.013595  ...  0.000000  0.000000   \n",
       "食品饮料        0.002177  0.001808  0.002263  0.007328  ...  0.001639  0.002650   \n",
       "烟草          0.001965  0.001999  0.000934  0.002481  ...  0.000684  0.001732   \n",
       "纺织服装        0.030555  0.004971  0.075767  0.003471  ...  0.003830  0.001974   \n",
       "木材家具        0.308126  0.009834  0.036404  0.001077  ...  0.000386  0.000512   \n",
       "造纸印刷        0.007847  0.299443  0.055488  0.002562  ...  0.008506  0.002674   \n",
       "文体工美        0.001624  0.001869  0.074250  0.000550  ...  0.007794  0.002338   \n",
       "石油化工        0.064308  0.083916  0.070522  0.295863  ...  0.003279  0.001751   \n",
       "医药制品        0.000010  0.002376  0.000013  0.001001  ...  0.000058  0.000014   \n",
       "化学纤维        0.000600  0.000608  0.012507  0.000654  ...  0.000000  0.000000   \n",
       "橡胶塑料        0.014748  0.022803  0.055045  0.014654  ...  0.000069  0.000357   \n",
       "非金属制品       0.007238  0.000748  0.004575  0.005748  ...  0.000019  0.000031   \n",
       "黑色金属冶炼压延    0.008922  0.000605  0.012674  0.000744  ...  0.000000  0.000002   \n",
       "有色金属冶炼压延    0.003415  0.003774  0.117120  0.007242  ...  0.000000  0.000000   \n",
       "金属制品        0.023213  0.002979  0.018081  0.002889  ...  0.000071  0.001122   \n",
       "通用设备        0.004817  0.002024  0.003858  0.005766  ...  0.000524  0.000289   \n",
       "专用设备        0.003041  0.006442  0.001545  0.003386  ...  0.000751  0.000008   \n",
       "汽车及零部件制造    0.000448  0.000083  0.001093  0.000306  ...  0.000235  0.000027   \n",
       "其他交通设备      0.000263  0.000019  0.000214  0.000164  ...  0.000031  0.000002   \n",
       "电气机械        0.001080  0.000520  0.008595  0.000818  ...  0.000090  0.000054   \n",
       "计算机通信设备     0.000381  0.001585  0.017715  0.000565  ...  0.000938  0.000405   \n",
       "其他制造业       0.000964  0.047075  0.002211  0.003034  ...  0.000069  0.001220   \n",
       "水电燃         0.020132  0.023823  0.010831  0.043024  ...  0.003855  0.006667   \n",
       "建筑业         0.000500  0.000279  0.000191  0.000313  ...  0.002025  0.013307   \n",
       "批发零售        0.090246  0.067730  0.059675  0.037015  ...  0.004665  0.003105   \n",
       "交通运输        0.033842  0.025341  0.031873  0.033537  ...  0.011016  0.004012   \n",
       "餐饮住宿        0.004271  0.005101  0.003602  0.003411  ...  0.023143  0.003927   \n",
       "软件和信息技术服务业  0.002646  0.002821  0.009055  0.002594  ...  0.033759  0.008164   \n",
       "金融          0.009376  0.018348  0.008365  0.014727  ...  0.071679  0.113129   \n",
       "房地产         0.000872  0.000407  0.000475  0.000137  ...  0.060767  0.041376   \n",
       "租赁和商务服务     0.012027  0.013655  0.041177  0.014587  ...  0.062668  0.061528   \n",
       "科学技术研究      0.003592  0.004315  0.001040  0.005953  ...  0.000684  0.000831   \n",
       "水利生态设施管理    0.000487  0.002843  0.000195  0.000609  ...  0.001547  0.000403   \n",
       "居民服务其他服务    0.002822  0.003440  0.001733  0.002090  ...  0.002999  0.001704   \n",
       "教育          0.000242  0.000100  0.000110  0.000112  ...  0.002523  0.000257   \n",
       "卫生社会        0.000314  0.000404  0.000130  0.000866  ...  0.000316  0.000012   \n",
       "文化体育娱乐      0.001107  0.000773  0.000627  0.000772  ...  0.008695  0.001235   \n",
       "公共管理和社会组织   0.000160  0.000183  0.000216  0.000151  ...  0.000453  0.001219   \n",
       "\n",
       "             租赁和商务服务    科学技术研究  水利生态设施管理  居民服务其他服务        教育      卫生社会  \\\n",
       "农林牧渔        0.007650  0.007161  0.084122  0.007553  0.001150  0.001179   \n",
       "采矿业         0.000002  0.000991  0.000812  0.001100  0.001147  0.000777   \n",
       "农副食品        0.008911  0.001339  0.007513  0.004483  0.012192  0.003470   \n",
       "食品饮料        0.004763  0.008096  0.008272  0.017068  0.006727  0.009249   \n",
       "烟草          0.003539  0.001310  0.004888  0.003465  0.004561  0.001093   \n",
       "纺织服装        0.017329  0.005499  0.012768  0.008335  0.002911  0.018610   \n",
       "木材家具        0.000623  0.000601  0.002459  0.002117  0.000644  0.000169   \n",
       "造纸印刷        0.062639  0.007878  0.001049  0.001485  0.014886  0.000364   \n",
       "文体工美        0.009575  0.002928  0.008183  0.004374  0.008863  0.000479   \n",
       "石油化工        0.024476  0.064334  0.066969  0.049082  0.019350  0.001675   \n",
       "医药制品        0.000185  0.004862  0.000757  0.000614  0.001334  0.318922   \n",
       "化学纤维        0.000000  0.000406  0.000000  0.000000  0.000000  0.000000   \n",
       "橡胶塑料        0.003361  0.003617  0.016270  0.009061  0.000106  0.001055   \n",
       "非金属制品       0.000271  0.003284  0.007242  0.000319  0.002123  0.000635   \n",
       "黑色金属冶炼压延    0.000001  0.000678  0.001241  0.000028  0.000050  0.000001   \n",
       "有色金属冶炼压延    0.000002  0.000353  0.000000  0.000487  0.000085  0.000002   \n",
       "金属制品        0.026091  0.025338  0.009821  0.010996  0.001425  0.000106   \n",
       "通用设备        0.000308  0.001248  0.002240  0.000436  0.001220  0.000212   \n",
       "专用设备        0.000544  0.000267  0.002084  0.000533  0.000251  0.032470   \n",
       "汽车及零部件制造    0.033592  0.005036  0.015528  0.026843  0.000216  0.000092   \n",
       "其他交通设备      0.000032  0.000342  0.001289  0.015124  0.000034  0.000412   \n",
       "电气机械        0.013242  0.022878  0.012844  0.010837  0.000177  0.000937   \n",
       "计算机通信设备     0.022978  0.043955  0.013036  0.039085  0.001621  0.001761   \n",
       "其他制造业       0.009489  0.051213  0.012043  0.010680  0.009863  0.001034   \n",
       "水电燃         0.004536  0.008799  0.030763  0.016514  0.008285  0.007459   \n",
       "建筑业         0.000463  0.001250  0.009307  0.001761  0.006234  0.002200   \n",
       "批发零售        0.036224  0.028227  0.030797  0.028245  0.011965  0.066804   \n",
       "交通运输        0.059778  0.037464  0.039043  0.024858  0.022856  0.031168   \n",
       "餐饮住宿        0.047842  0.036399  0.012122  0.011195  0.023818  0.004712   \n",
       "软件和信息技术服务业  0.014983  0.019237  0.016475  0.006010  0.020208  0.020729   \n",
       "金融          0.068752  0.030113  0.043786  0.012719  0.026671  0.008471   \n",
       "房地产         0.060270  0.016634  0.011773  0.101630  0.040574  0.014857   \n",
       "租赁和商务服务     0.108678  0.048314  0.032869  0.024024  0.010720  0.005570   \n",
       "科学技术研究      0.000128  0.116164  0.002921  0.000047  0.002580  0.000488   \n",
       "水利生态设施管理    0.003886  0.001786  0.031482  0.001769  0.001076  0.000826   \n",
       "居民服务其他服务    0.007847  0.012763  0.038855  0.018241  0.011996  0.007643   \n",
       "教育          0.000599  0.000846  0.000754  0.000630  0.014453  0.001694   \n",
       "卫生社会        0.000061  0.000200  0.000622  0.000267  0.000429  0.005895   \n",
       "文化体育娱乐      0.004108  0.003257  0.003685  0.003781  0.004495  0.000671   \n",
       "公共管理和社会组织   0.001326  0.000845  0.000739  0.000537  0.001669  0.000238   \n",
       "\n",
       "              文化体育娱乐  公共管理和社会组织  \n",
       "农林牧渔        0.003066   0.000000  \n",
       "采矿业         0.000313   0.000754  \n",
       "农副食品        0.004133   0.000000  \n",
       "食品饮料        0.046660   0.005186  \n",
       "烟草          0.011267   0.001496  \n",
       "纺织服装        0.030378   0.030534  \n",
       "木材家具        0.002052   0.004729  \n",
       "造纸印刷        0.037772   0.015372  \n",
       "文体工美        0.010057   0.008777  \n",
       "石油化工        0.013339   0.008752  \n",
       "医药制品        0.000158   0.000208  \n",
       "化学纤维        0.000000   0.000000  \n",
       "橡胶塑料        0.001668   0.000294  \n",
       "非金属制品       0.000031   0.000016  \n",
       "黑色金属冶炼压延    0.000005   0.000000  \n",
       "有色金属冶炼压延    0.000002   0.000000  \n",
       "金属制品        0.000980   0.001295  \n",
       "通用设备        0.000332   0.000155  \n",
       "专用设备        0.000072   0.000037  \n",
       "汽车及零部件制造    0.000585   0.002971  \n",
       "其他交通设备      0.000121   0.000621  \n",
       "电气机械        0.000673   0.002324  \n",
       "计算机通信设备     0.005155   0.005455  \n",
       "其他制造业       0.006032   0.001059  \n",
       "水电燃         0.013604   0.010189  \n",
       "建筑业         0.006375   0.012505  \n",
       "批发零售        0.031045   0.014786  \n",
       "交通运输        0.033474   0.033576  \n",
       "餐饮住宿        0.032754   0.046551  \n",
       "软件和信息技术服务业  0.018580   0.062891  \n",
       "金融          0.024833   0.024593  \n",
       "房地产         0.039183   0.019714  \n",
       "租赁和商务服务     0.046284   0.031085  \n",
       "科学技术研究      0.000204   0.000460  \n",
       "水利生态设施管理    0.002214   0.002165  \n",
       "居民服务其他服务    0.013864   0.021437  \n",
       "教育          0.001573   0.009495  \n",
       "卫生社会        0.000549   0.003230  \n",
       "文化体育娱乐      0.059244   0.008411  \n",
       "公共管理和社会组织   0.000799   0.026520  \n",
       "\n",
       "[40 rows x 40 columns]"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "## 直接消耗系数\n",
    "io20.A"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "498134cb",
   "metadata": {},
   "source": [
    "## 行业比较，不同行业的直接消耗系数"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "6f4ad0bc",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=房地产<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "房地产",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "房地产",
         "offsetgroup": "房地产",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "OpFgqpm1ND9pHVVNEHUPPwAAAAAAAAAAoWez6nO1ZT/MttPWiGBcP7haJy7HK2A/je21oPfGQD9qiZXRyOdlP3CwNzEkJ2M/9BYP7zmwXD+3Xz5ZMVztPgAAAAAAAAAARrQdU3dlNz8hPrDjv0AAP43ttaD3xsA+AAAAAAAAAADJVpdTAmJSPyxhbYyd8DI/je21oPfG4D7eADPfwU/8Po3ttaD3xsA+3gAz38FPDD/Q0D/BxYo6PwXAeAYN/VM/GR9mL9tOez+YhXZOs0CLP8jShy6ob2k/bjKqDONucD/wayQJwhVwP11OCYhJuIA/zas6qwX2vD81uK0tPC+lP3yakxeZgK8/D0dX6e46Sz/1ZP7RN2k6P029bhEY61s/e6NWmL7XMD9U5BBxcyrpPkBqEyf3O1Q/ipKQSNv4Uz8=",
          "dtype": "f8"
         },
         "yaxis": "y"
        },
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=金融<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "金融",
         "marker": {
          "color": "#EF553B",
          "pattern": {
           "shape": ""
          }
         },
         "name": "金融",
         "offsetgroup": "金融",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "S7A4nPnVDD9pHVVNEHXvPgAAAAAAAAAA+TB72XbaWj9bC7PQzmlGPwA6zJcXYG8/L1BSYAFMOT+45o7+l2uBP6UtrvGZ7H8/tkdvuI/caj+QvknToGgOPwAAAAAAAAAAHCRE+YIWEj8YCtgORuzzPgAAAAAAAAAAAAAAAAAAAACJ00m2upwSPx8xem6hK0E/8dk6ONibSD8hAg6hSs0uPyE+sOO/QAA/D9b/OcyXFz80TG2pg7xOPxwkRPmCFhI/hnKiXYWUbz+C4seYu5ZgP10z+WabG3M/saTcfY6Phj/ZeoZwzLKXPxIu5BHcSKE/HVvPEI5Zsj/eIFor2hyvP2R3gZICC7A/Wwuz0M5pRj+h2AqallhZPzxodt1bkWg/hh+cTx2rZD86kWCqmbU0PzsZHCWvzoE/W+1hLxSwPT8=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "group",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "px.bar(io20.A[['房地产','金融']], barmode='group')"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "9c93c159",
   "metadata": {},
   "source": [
    "# 列昂惕夫逆矩阵"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "7d3cde03",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>农林牧渔</th>\n",
       "      <th>采矿业</th>\n",
       "      <th>农副食品</th>\n",
       "      <th>食品饮料</th>\n",
       "      <th>烟草</th>\n",
       "      <th>纺织服装</th>\n",
       "      <th>木材家具</th>\n",
       "      <th>造纸印刷</th>\n",
       "      <th>文体工美</th>\n",
       "      <th>石油化工</th>\n",
       "      <th>...</th>\n",
       "      <th>金融</th>\n",
       "      <th>房地产</th>\n",
       "      <th>租赁和商务服务</th>\n",
       "      <th>科学技术研究</th>\n",
       "      <th>水利生态设施管理</th>\n",
       "      <th>居民服务其他服务</th>\n",
       "      <th>教育</th>\n",
       "      <th>卫生社会</th>\n",
       "      <th>文化体育娱乐</th>\n",
       "      <th>公共管理和社会组织</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>农林牧渔</th>\n",
       "      <td>1.241885</td>\n",
       "      <td>0.019181</td>\n",
       "      <td>0.773409</td>\n",
       "      <td>0.450204</td>\n",
       "      <td>0.103607</td>\n",
       "      <td>0.274208</td>\n",
       "      <td>0.250329</td>\n",
       "      <td>0.142308</td>\n",
       "      <td>0.103755</td>\n",
       "      <td>0.055818</td>\n",
       "      <td>...</td>\n",
       "      <td>0.021802</td>\n",
       "      <td>0.013362</td>\n",
       "      <td>0.069655</td>\n",
       "      <td>0.054107</td>\n",
       "      <td>0.144744</td>\n",
       "      <td>0.041970</td>\n",
       "      <td>0.034315</td>\n",
       "      <td>0.110722</td>\n",
       "      <td>0.069450</td>\n",
       "      <td>0.042786</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>采矿业</th>\n",
       "      <td>0.045041</td>\n",
       "      <td>1.217345</td>\n",
       "      <td>0.042582</td>\n",
       "      <td>0.051428</td>\n",
       "      <td>0.020659</td>\n",
       "      <td>0.080045</td>\n",
       "      <td>0.096941</td>\n",
       "      <td>0.116652</td>\n",
       "      <td>0.147918</td>\n",
       "      <td>0.422804</td>\n",
       "      <td>...</td>\n",
       "      <td>0.014902</td>\n",
       "      <td>0.013346</td>\n",
       "      <td>0.055617</td>\n",
       "      <td>0.073905</td>\n",
       "      <td>0.075130</td>\n",
       "      <td>0.054754</td>\n",
       "      <td>0.026494</td>\n",
       "      <td>0.038264</td>\n",
       "      <td>0.036459</td>\n",
       "      <td>0.029903</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>农副食品</th>\n",
       "      <td>0.121876</td>\n",
       "      <td>0.009395</td>\n",
       "      <td>1.246532</td>\n",
       "      <td>0.274182</td>\n",
       "      <td>0.015288</td>\n",
       "      <td>0.069469</td>\n",
       "      <td>0.037100</td>\n",
       "      <td>0.025494</td>\n",
       "      <td>0.026787</td>\n",
       "      <td>0.038073</td>\n",
       "      <td>...</td>\n",
       "      <td>0.012855</td>\n",
       "      <td>0.007125</td>\n",
       "      <td>0.039962</td>\n",
       "      <td>0.027903</td>\n",
       "      <td>0.036531</td>\n",
       "      <td>0.022387</td>\n",
       "      <td>0.028723</td>\n",
       "      <td>0.031129</td>\n",
       "      <td>0.038207</td>\n",
       "      <td>0.023113</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>食品饮料</th>\n",
       "      <td>0.006820</td>\n",
       "      <td>0.007404</td>\n",
       "      <td>0.030886</td>\n",
       "      <td>1.139843</td>\n",
       "      <td>0.009087</td>\n",
       "      <td>0.011593</td>\n",
       "      <td>0.012089</td>\n",
       "      <td>0.011394</td>\n",
       "      <td>0.012413</td>\n",
       "      <td>0.019193</td>\n",
       "      <td>...</td>\n",
       "      <td>0.008887</td>\n",
       "      <td>0.006784</td>\n",
       "      <td>0.019886</td>\n",
       "      <td>0.023030</td>\n",
       "      <td>0.019039</td>\n",
       "      <td>0.026592</td>\n",
       "      <td>0.014566</td>\n",
       "      <td>0.024334</td>\n",
       "      <td>0.065970</td>\n",
       "      <td>0.017361</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>烟草</th>\n",
       "      <td>0.001863</td>\n",
       "      <td>0.004937</td>\n",
       "      <td>0.002697</td>\n",
       "      <td>0.003370</td>\n",
       "      <td>1.141276</td>\n",
       "      <td>0.005079</td>\n",
       "      <td>0.007233</td>\n",
       "      <td>0.007333</td>\n",
       "      <td>0.007899</td>\n",
       "      <td>0.008114</td>\n",
       "      <td>...</td>\n",
       "      <td>0.002918</td>\n",
       "      <td>0.003511</td>\n",
       "      <td>0.009286</td>\n",
       "      <td>0.006971</td>\n",
       "      <td>0.009806</td>\n",
       "      <td>0.007798</td>\n",
       "      <td>0.007250</td>\n",
       "      <td>0.004023</td>\n",
       "      <td>0.016757</td>\n",
       "      <td>0.004910</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>纺织服装</th>\n",
       "      <td>0.005855</td>\n",
       "      <td>0.018011</td>\n",
       "      <td>0.012057</td>\n",
       "      <td>0.017986</td>\n",
       "      <td>0.014435</td>\n",
       "      <td>1.724236</td>\n",
       "      <td>0.087599</td>\n",
       "      <td>0.027334</td>\n",
       "      <td>0.159045</td>\n",
       "      <td>0.021682</td>\n",
       "      <td>...</td>\n",
       "      <td>0.015285</td>\n",
       "      <td>0.010221</td>\n",
       "      <td>0.048206</td>\n",
       "      <td>0.026386</td>\n",
       "      <td>0.036252</td>\n",
       "      <td>0.025578</td>\n",
       "      <td>0.012519</td>\n",
       "      <td>0.050346</td>\n",
       "      <td>0.067192</td>\n",
       "      <td>0.064254</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>木材家具</th>\n",
       "      <td>0.002042</td>\n",
       "      <td>0.014820</td>\n",
       "      <td>0.002541</td>\n",
       "      <td>0.005196</td>\n",
       "      <td>0.004614</td>\n",
       "      <td>0.006894</td>\n",
       "      <td>1.449775</td>\n",
       "      <td>0.024696</td>\n",
       "      <td>0.063346</td>\n",
       "      <td>0.008981</td>\n",
       "      <td>...</td>\n",
       "      <td>0.002706</td>\n",
       "      <td>0.002575</td>\n",
       "      <td>0.007278</td>\n",
       "      <td>0.005853</td>\n",
       "      <td>0.008260</td>\n",
       "      <td>0.006850</td>\n",
       "      <td>0.003477</td>\n",
       "      <td>0.003088</td>\n",
       "      <td>0.007236</td>\n",
       "      <td>0.010438</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>造纸印刷</th>\n",
       "      <td>0.006404</td>\n",
       "      <td>0.011920</td>\n",
       "      <td>0.015086</td>\n",
       "      <td>0.041296</td>\n",
       "      <td>0.061422</td>\n",
       "      <td>0.026271</td>\n",
       "      <td>0.031272</td>\n",
       "      <td>1.442237</td>\n",
       "      <td>0.106164</td>\n",
       "      <td>0.018890</td>\n",
       "      <td>...</td>\n",
       "      <td>0.027665</td>\n",
       "      <td>0.016830</td>\n",
       "      <td>0.116046</td>\n",
       "      <td>0.032536</td>\n",
       "      <td>0.018276</td>\n",
       "      <td>0.015853</td>\n",
       "      <td>0.030737</td>\n",
       "      <td>0.020719</td>\n",
       "      <td>0.075012</td>\n",
       "      <td>0.038446</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>文体工美</th>\n",
       "      <td>0.001962</td>\n",
       "      <td>0.002512</td>\n",
       "      <td>0.002412</td>\n",
       "      <td>0.004308</td>\n",
       "      <td>0.001377</td>\n",
       "      <td>0.004088</td>\n",
       "      <td>0.005260</td>\n",
       "      <td>0.005617</td>\n",
       "      <td>1.083719</td>\n",
       "      <td>0.003395</td>\n",
       "      <td>...</td>\n",
       "      <td>0.011306</td>\n",
       "      <td>0.005290</td>\n",
       "      <td>0.015137</td>\n",
       "      <td>0.007048</td>\n",
       "      <td>0.012255</td>\n",
       "      <td>0.007315</td>\n",
       "      <td>0.011447</td>\n",
       "      <td>0.005289</td>\n",
       "      <td>0.014439</td>\n",
       "      <td>0.012525</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>石油化工</th>\n",
       "      <td>0.132957</td>\n",
       "      <td>0.125797</td>\n",
       "      <td>0.104480</td>\n",
       "      <td>0.107186</td>\n",
       "      <td>0.048457</td>\n",
       "      <td>0.189220</td>\n",
       "      <td>0.224924</td>\n",
       "      <td>0.253721</td>\n",
       "      <td>0.252925</td>\n",
       "      <td>1.510054</td>\n",
       "      <td>...</td>\n",
       "      <td>0.029438</td>\n",
       "      <td>0.022053</td>\n",
       "      <td>0.115075</td>\n",
       "      <td>0.170575</td>\n",
       "      <td>0.173134</td>\n",
       "      <td>0.121014</td>\n",
       "      <td>0.057001</td>\n",
       "      <td>0.075443</td>\n",
       "      <td>0.075199</td>\n",
       "      <td>0.057140</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>医药制品</th>\n",
       "      <td>0.007727</td>\n",
       "      <td>0.001297</td>\n",
       "      <td>0.005764</td>\n",
       "      <td>0.005096</td>\n",
       "      <td>0.001113</td>\n",
       "      <td>0.002934</td>\n",
       "      <td>0.002653</td>\n",
       "      <td>0.006351</td>\n",
       "      <td>0.002092</td>\n",
       "      <td>0.003500</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000681</td>\n",
       "      <td>0.000387</td>\n",
       "      <td>0.001772</td>\n",
       "      <td>0.008335</td>\n",
       "      <td>0.002966</td>\n",
       "      <td>0.001823</td>\n",
       "      <td>0.002529</td>\n",
       "      <td>0.405536</td>\n",
       "      <td>0.001645</td>\n",
       "      <td>0.002457</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>化学纤维</th>\n",
       "      <td>0.000960</td>\n",
       "      <td>0.002022</td>\n",
       "      <td>0.001491</td>\n",
       "      <td>0.002305</td>\n",
       "      <td>0.011541</td>\n",
       "      <td>0.123438</td>\n",
       "      <td>0.008681</td>\n",
       "      <td>0.005464</td>\n",
       "      <td>0.031997</td>\n",
       "      <td>0.003920</td>\n",
       "      <td>...</td>\n",
       "      <td>0.001518</td>\n",
       "      <td>0.001033</td>\n",
       "      <td>0.004721</td>\n",
       "      <td>0.004203</td>\n",
       "      <td>0.003978</td>\n",
       "      <td>0.002848</td>\n",
       "      <td>0.001551</td>\n",
       "      <td>0.005473</td>\n",
       "      <td>0.005760</td>\n",
       "      <td>0.005209</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>橡胶塑料</th>\n",
       "      <td>0.017015</td>\n",
       "      <td>0.017048</td>\n",
       "      <td>0.021906</td>\n",
       "      <td>0.039984</td>\n",
       "      <td>0.011826</td>\n",
       "      <td>0.048037</td>\n",
       "      <td>0.043509</td>\n",
       "      <td>0.057094</td>\n",
       "      <td>0.097133</td>\n",
       "      <td>0.039041</td>\n",
       "      <td>...</td>\n",
       "      <td>0.005985</td>\n",
       "      <td>0.004765</td>\n",
       "      <td>0.025003</td>\n",
       "      <td>0.024562</td>\n",
       "      <td>0.037548</td>\n",
       "      <td>0.026475</td>\n",
       "      <td>0.007401</td>\n",
       "      <td>0.015628</td>\n",
       "      <td>0.015852</td>\n",
       "      <td>0.011169</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>非金属制品</th>\n",
       "      <td>0.004005</td>\n",
       "      <td>0.014549</td>\n",
       "      <td>0.004869</td>\n",
       "      <td>0.019424</td>\n",
       "      <td>0.003359</td>\n",
       "      <td>0.007898</td>\n",
       "      <td>0.020926</td>\n",
       "      <td>0.010279</td>\n",
       "      <td>0.019717</td>\n",
       "      <td>0.019060</td>\n",
       "      <td>...</td>\n",
       "      <td>0.002824</td>\n",
       "      <td>0.004665</td>\n",
       "      <td>0.009781</td>\n",
       "      <td>0.016353</td>\n",
       "      <td>0.019330</td>\n",
       "      <td>0.009282</td>\n",
       "      <td>0.006910</td>\n",
       "      <td>0.010551</td>\n",
       "      <td>0.006475</td>\n",
       "      <td>0.006791</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>黑色金属冶炼压延</th>\n",
       "      <td>0.006253</td>\n",
       "      <td>0.043999</td>\n",
       "      <td>0.007209</td>\n",
       "      <td>0.011218</td>\n",
       "      <td>0.004266</td>\n",
       "      <td>0.013102</td>\n",
       "      <td>0.038499</td>\n",
       "      <td>0.016993</td>\n",
       "      <td>0.041348</td>\n",
       "      <td>0.024610</td>\n",
       "      <td>...</td>\n",
       "      <td>0.004368</td>\n",
       "      <td>0.005533</td>\n",
       "      <td>0.022546</td>\n",
       "      <td>0.024614</td>\n",
       "      <td>0.019041</td>\n",
       "      <td>0.016634</td>\n",
       "      <td>0.006014</td>\n",
       "      <td>0.011493</td>\n",
       "      <td>0.008395</td>\n",
       "      <td>0.008573</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>有色金属冶炼压延</th>\n",
       "      <td>0.008793</td>\n",
       "      <td>0.027293</td>\n",
       "      <td>0.010337</td>\n",
       "      <td>0.015269</td>\n",
       "      <td>0.006464</td>\n",
       "      <td>0.018530</td>\n",
       "      <td>0.033678</td>\n",
       "      <td>0.033727</td>\n",
       "      <td>0.235019</td>\n",
       "      <td>0.038819</td>\n",
       "      <td>...</td>\n",
       "      <td>0.008362</td>\n",
       "      <td>0.006499</td>\n",
       "      <td>0.036673</td>\n",
       "      <td>0.043648</td>\n",
       "      <td>0.029633</td>\n",
       "      <td>0.031403</td>\n",
       "      <td>0.010093</td>\n",
       "      <td>0.016096</td>\n",
       "      <td>0.014847</td>\n",
       "      <td>0.014260</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>金属制品</th>\n",
       "      <td>0.006717</td>\n",
       "      <td>0.040426</td>\n",
       "      <td>0.008783</td>\n",
       "      <td>0.019002</td>\n",
       "      <td>0.007039</td>\n",
       "      <td>0.017717</td>\n",
       "      <td>0.052019</td>\n",
       "      <td>0.020755</td>\n",
       "      <td>0.043070</td>\n",
       "      <td>0.026018</td>\n",
       "      <td>...</td>\n",
       "      <td>0.006412</td>\n",
       "      <td>0.007387</td>\n",
       "      <td>0.047508</td>\n",
       "      <td>0.050592</td>\n",
       "      <td>0.026595</td>\n",
       "      <td>0.026122</td>\n",
       "      <td>0.007590</td>\n",
       "      <td>0.012588</td>\n",
       "      <td>0.011366</td>\n",
       "      <td>0.010538</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>通用设备</th>\n",
       "      <td>0.006840</td>\n",
       "      <td>0.029295</td>\n",
       "      <td>0.008280</td>\n",
       "      <td>0.010507</td>\n",
       "      <td>0.004539</td>\n",
       "      <td>0.015442</td>\n",
       "      <td>0.021561</td>\n",
       "      <td>0.017300</td>\n",
       "      <td>0.021514</td>\n",
       "      <td>0.026479</td>\n",
       "      <td>...</td>\n",
       "      <td>0.003865</td>\n",
       "      <td>0.003095</td>\n",
       "      <td>0.014537</td>\n",
       "      <td>0.016627</td>\n",
       "      <td>0.015327</td>\n",
       "      <td>0.013148</td>\n",
       "      <td>0.005779</td>\n",
       "      <td>0.012057</td>\n",
       "      <td>0.007070</td>\n",
       "      <td>0.006252</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>专用设备</th>\n",
       "      <td>0.012967</td>\n",
       "      <td>0.039772</td>\n",
       "      <td>0.009642</td>\n",
       "      <td>0.008897</td>\n",
       "      <td>0.003998</td>\n",
       "      <td>0.011060</td>\n",
       "      <td>0.014135</td>\n",
       "      <td>0.019658</td>\n",
       "      <td>0.015260</td>\n",
       "      <td>0.021869</td>\n",
       "      <td>...</td>\n",
       "      <td>0.002955</td>\n",
       "      <td>0.001775</td>\n",
       "      <td>0.008807</td>\n",
       "      <td>0.010018</td>\n",
       "      <td>0.010353</td>\n",
       "      <td>0.007659</td>\n",
       "      <td>0.003115</td>\n",
       "      <td>0.042202</td>\n",
       "      <td>0.004747</td>\n",
       "      <td>0.004042</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>汽车及零部件制造</th>\n",
       "      <td>0.009101</td>\n",
       "      <td>0.016074</td>\n",
       "      <td>0.012717</td>\n",
       "      <td>0.016299</td>\n",
       "      <td>0.006485</td>\n",
       "      <td>0.019598</td>\n",
       "      <td>0.017972</td>\n",
       "      <td>0.015472</td>\n",
       "      <td>0.020773</td>\n",
       "      <td>0.017591</td>\n",
       "      <td>...</td>\n",
       "      <td>0.009313</td>\n",
       "      <td>0.007424</td>\n",
       "      <td>0.073391</td>\n",
       "      <td>0.026058</td>\n",
       "      <td>0.040595</td>\n",
       "      <td>0.052449</td>\n",
       "      <td>0.007864</td>\n",
       "      <td>0.015260</td>\n",
       "      <td>0.014890</td>\n",
       "      <td>0.016833</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>其他交通设备</th>\n",
       "      <td>0.003052</td>\n",
       "      <td>0.002435</td>\n",
       "      <td>0.003045</td>\n",
       "      <td>0.002936</td>\n",
       "      <td>0.001156</td>\n",
       "      <td>0.003621</td>\n",
       "      <td>0.003614</td>\n",
       "      <td>0.003462</td>\n",
       "      <td>0.003432</td>\n",
       "      <td>0.003115</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000946</td>\n",
       "      <td>0.000644</td>\n",
       "      <td>0.003321</td>\n",
       "      <td>0.003897</td>\n",
       "      <td>0.004935</td>\n",
       "      <td>0.020407</td>\n",
       "      <td>0.001511</td>\n",
       "      <td>0.003099</td>\n",
       "      <td>0.002411</td>\n",
       "      <td>0.002869</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>电气机械</th>\n",
       "      <td>0.007497</td>\n",
       "      <td>0.022919</td>\n",
       "      <td>0.010116</td>\n",
       "      <td>0.013549</td>\n",
       "      <td>0.006140</td>\n",
       "      <td>0.016729</td>\n",
       "      <td>0.019085</td>\n",
       "      <td>0.021008</td>\n",
       "      <td>0.032566</td>\n",
       "      <td>0.022848</td>\n",
       "      <td>...</td>\n",
       "      <td>0.006902</td>\n",
       "      <td>0.006011</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>0.054419</td>\n",
       "      <td>0.034727</td>\n",
       "      <td>0.032800</td>\n",
       "      <td>0.007584</td>\n",
       "      <td>0.015166</td>\n",
       "      <td>0.012828</td>\n",
       "      <td>0.014435</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>计算机通信设备</th>\n",
       "      <td>0.011214</td>\n",
       "      <td>0.026206</td>\n",
       "      <td>0.015247</td>\n",
       "      <td>0.022018</td>\n",
       "      <td>0.009413</td>\n",
       "      <td>0.024020</td>\n",
       "      <td>0.025247</td>\n",
       "      <td>0.039653</td>\n",
       "      <td>0.070952</td>\n",
       "      <td>0.027319</td>\n",
       "      <td>...</td>\n",
       "      <td>0.019040</td>\n",
       "      <td>0.012801</td>\n",
       "      <td>0.084069</td>\n",
       "      <td>0.145227</td>\n",
       "      <td>0.059461</td>\n",
       "      <td>0.106928</td>\n",
       "      <td>0.018627</td>\n",
       "      <td>0.030181</td>\n",
       "      <td>0.033362</td>\n",
       "      <td>0.037911</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>其他制造业</th>\n",
       "      <td>0.005136</td>\n",
       "      <td>0.018824</td>\n",
       "      <td>0.007057</td>\n",
       "      <td>0.010567</td>\n",
       "      <td>0.007058</td>\n",
       "      <td>0.015127</td>\n",
       "      <td>0.016336</td>\n",
       "      <td>0.087110</td>\n",
       "      <td>0.029495</td>\n",
       "      <td>0.019896</td>\n",
       "      <td>...</td>\n",
       "      <td>0.005288</td>\n",
       "      <td>0.005704</td>\n",
       "      <td>0.028205</td>\n",
       "      <td>0.078668</td>\n",
       "      <td>0.025878</td>\n",
       "      <td>0.022371</td>\n",
       "      <td>0.016826</td>\n",
       "      <td>0.009556</td>\n",
       "      <td>0.017496</td>\n",
       "      <td>0.009247</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>水电燃</th>\n",
       "      <td>0.034447</td>\n",
       "      <td>0.111425</td>\n",
       "      <td>0.042796</td>\n",
       "      <td>0.051538</td>\n",
       "      <td>0.020518</td>\n",
       "      <td>0.076678</td>\n",
       "      <td>0.090678</td>\n",
       "      <td>0.094627</td>\n",
       "      <td>0.093862</td>\n",
       "      <td>0.142123</td>\n",
       "      <td>...</td>\n",
       "      <td>0.018749</td>\n",
       "      <td>0.019694</td>\n",
       "      <td>0.049456</td>\n",
       "      <td>0.058508</td>\n",
       "      <td>0.084192</td>\n",
       "      <td>0.054730</td>\n",
       "      <td>0.028600</td>\n",
       "      <td>0.045425</td>\n",
       "      <td>0.047374</td>\n",
       "      <td>0.038195</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>建筑业</th>\n",
       "      <td>0.001459</td>\n",
       "      <td>0.001798</td>\n",
       "      <td>0.001641</td>\n",
       "      <td>0.001927</td>\n",
       "      <td>0.001007</td>\n",
       "      <td>0.002369</td>\n",
       "      <td>0.002651</td>\n",
       "      <td>0.002224</td>\n",
       "      <td>0.002223</td>\n",
       "      <td>0.002300</td>\n",
       "      <td>...</td>\n",
       "      <td>0.004060</td>\n",
       "      <td>0.015337</td>\n",
       "      <td>0.003433</td>\n",
       "      <td>0.003538</td>\n",
       "      <td>0.011932</td>\n",
       "      <td>0.004586</td>\n",
       "      <td>0.008059</td>\n",
       "      <td>0.003983</td>\n",
       "      <td>0.009043</td>\n",
       "      <td>0.015093</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>批发零售</th>\n",
       "      <td>0.056604</td>\n",
       "      <td>0.059064</td>\n",
       "      <td>0.125951</td>\n",
       "      <td>0.136548</td>\n",
       "      <td>0.077945</td>\n",
       "      <td>0.164672</td>\n",
       "      <td>0.186390</td>\n",
       "      <td>0.148240</td>\n",
       "      <td>0.146877</td>\n",
       "      <td>0.100743</td>\n",
       "      <td>...</td>\n",
       "      <td>0.025894</td>\n",
       "      <td>0.019210</td>\n",
       "      <td>0.100044</td>\n",
       "      <td>0.088805</td>\n",
       "      <td>0.082971</td>\n",
       "      <td>0.071634</td>\n",
       "      <td>0.035685</td>\n",
       "      <td>0.130369</td>\n",
       "      <td>0.077797</td>\n",
       "      <td>0.052204</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>交通运输</th>\n",
       "      <td>0.051081</td>\n",
       "      <td>0.058916</td>\n",
       "      <td>0.084712</td>\n",
       "      <td>0.092791</td>\n",
       "      <td>0.042968</td>\n",
       "      <td>0.135807</td>\n",
       "      <td>0.115944</td>\n",
       "      <td>0.095041</td>\n",
       "      <td>0.116029</td>\n",
       "      <td>0.102967</td>\n",
       "      <td>...</td>\n",
       "      <td>0.034523</td>\n",
       "      <td>0.022600</td>\n",
       "      <td>0.126578</td>\n",
       "      <td>0.099543</td>\n",
       "      <td>0.094065</td>\n",
       "      <td>0.066582</td>\n",
       "      <td>0.047557</td>\n",
       "      <td>0.092010</td>\n",
       "      <td>0.080413</td>\n",
       "      <td>0.072535</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>餐饮住宿</th>\n",
       "      <td>0.007905</td>\n",
       "      <td>0.014112</td>\n",
       "      <td>0.012447</td>\n",
       "      <td>0.020352</td>\n",
       "      <td>0.010913</td>\n",
       "      <td>0.019010</td>\n",
       "      <td>0.019508</td>\n",
       "      <td>0.020172</td>\n",
       "      <td>0.020644</td>\n",
       "      <td>0.017988</td>\n",
       "      <td>...</td>\n",
       "      <td>0.033515</td>\n",
       "      <td>0.013895</td>\n",
       "      <td>0.067807</td>\n",
       "      <td>0.056202</td>\n",
       "      <td>0.026007</td>\n",
       "      <td>0.021908</td>\n",
       "      <td>0.030921</td>\n",
       "      <td>0.020881</td>\n",
       "      <td>0.046830</td>\n",
       "      <td>0.058326</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>软件和信息技术服务业</th>\n",
       "      <td>0.009918</td>\n",
       "      <td>0.015216</td>\n",
       "      <td>0.014273</td>\n",
       "      <td>0.020035</td>\n",
       "      <td>0.008242</td>\n",
       "      <td>0.024613</td>\n",
       "      <td>0.021469</td>\n",
       "      <td>0.021222</td>\n",
       "      <td>0.032221</td>\n",
       "      <td>0.020570</td>\n",
       "      <td>...</td>\n",
       "      <td>0.053585</td>\n",
       "      <td>0.021706</td>\n",
       "      <td>0.042176</td>\n",
       "      <td>0.047325</td>\n",
       "      <td>0.038407</td>\n",
       "      <td>0.022765</td>\n",
       "      <td>0.034420</td>\n",
       "      <td>0.042291</td>\n",
       "      <td>0.038780</td>\n",
       "      <td>0.093501</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>金融</th>\n",
       "      <td>0.036182</td>\n",
       "      <td>0.079303</td>\n",
       "      <td>0.045665</td>\n",
       "      <td>0.054780</td>\n",
       "      <td>0.023080</td>\n",
       "      <td>0.068127</td>\n",
       "      <td>0.068918</td>\n",
       "      <td>0.077486</td>\n",
       "      <td>0.075572</td>\n",
       "      <td>0.079815</td>\n",
       "      <td>...</td>\n",
       "      <td>1.106629</td>\n",
       "      <td>0.145065</td>\n",
       "      <td>0.137232</td>\n",
       "      <td>0.087322</td>\n",
       "      <td>0.094743</td>\n",
       "      <td>0.060619</td>\n",
       "      <td>0.054344</td>\n",
       "      <td>0.058208</td>\n",
       "      <td>0.069720</td>\n",
       "      <td>0.061699</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>房地产</th>\n",
       "      <td>0.010839</td>\n",
       "      <td>0.018231</td>\n",
       "      <td>0.019471</td>\n",
       "      <td>0.026528</td>\n",
       "      <td>0.012030</td>\n",
       "      <td>0.029033</td>\n",
       "      <td>0.030558</td>\n",
       "      <td>0.027265</td>\n",
       "      <td>0.030293</td>\n",
       "      <td>0.023283</td>\n",
       "      <td>...</td>\n",
       "      <td>0.085451</td>\n",
       "      <td>1.062942</td>\n",
       "      <td>0.100790</td>\n",
       "      <td>0.049268</td>\n",
       "      <td>0.041229</td>\n",
       "      <td>0.126430</td>\n",
       "      <td>0.058071</td>\n",
       "      <td>0.041354</td>\n",
       "      <td>0.068445</td>\n",
       "      <td>0.047739</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>租赁和商务服务</th>\n",
       "      <td>0.025333</td>\n",
       "      <td>0.063393</td>\n",
       "      <td>0.047930</td>\n",
       "      <td>0.106314</td>\n",
       "      <td>0.034747</td>\n",
       "      <td>0.083188</td>\n",
       "      <td>0.073911</td>\n",
       "      <td>0.071838</td>\n",
       "      <td>0.109449</td>\n",
       "      <td>0.072894</td>\n",
       "      <td>...</td>\n",
       "      <td>0.099138</td>\n",
       "      <td>0.093230</td>\n",
       "      <td>1.178609</td>\n",
       "      <td>0.109940</td>\n",
       "      <td>0.083064</td>\n",
       "      <td>0.069121</td>\n",
       "      <td>0.037494</td>\n",
       "      <td>0.074543</td>\n",
       "      <td>0.096072</td>\n",
       "      <td>0.072801</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>科学技术研究</th>\n",
       "      <td>0.011954</td>\n",
       "      <td>0.016763</td>\n",
       "      <td>0.010325</td>\n",
       "      <td>0.011370</td>\n",
       "      <td>0.005084</td>\n",
       "      <td>0.012856</td>\n",
       "      <td>0.015251</td>\n",
       "      <td>0.015691</td>\n",
       "      <td>0.012186</td>\n",
       "      <td>0.019133</td>\n",
       "      <td>...</td>\n",
       "      <td>0.003298</td>\n",
       "      <td>0.003998</td>\n",
       "      <td>0.007965</td>\n",
       "      <td>1.139500</td>\n",
       "      <td>0.011762</td>\n",
       "      <td>0.006679</td>\n",
       "      <td>0.006428</td>\n",
       "      <td>0.009318</td>\n",
       "      <td>0.005822</td>\n",
       "      <td>0.005908</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>水利生态设施管理</th>\n",
       "      <td>0.002551</td>\n",
       "      <td>0.002705</td>\n",
       "      <td>0.002462</td>\n",
       "      <td>0.003055</td>\n",
       "      <td>0.001846</td>\n",
       "      <td>0.004195</td>\n",
       "      <td>0.003177</td>\n",
       "      <td>0.006375</td>\n",
       "      <td>0.003123</td>\n",
       "      <td>0.003302</td>\n",
       "      <td>...</td>\n",
       "      <td>0.002750</td>\n",
       "      <td>0.001442</td>\n",
       "      <td>0.006634</td>\n",
       "      <td>0.004141</td>\n",
       "      <td>1.034616</td>\n",
       "      <td>0.003358</td>\n",
       "      <td>0.002095</td>\n",
       "      <td>0.002852</td>\n",
       "      <td>0.004227</td>\n",
       "      <td>0.003780</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>居民服务其他服务</th>\n",
       "      <td>0.004078</td>\n",
       "      <td>0.009061</td>\n",
       "      <td>0.005699</td>\n",
       "      <td>0.009500</td>\n",
       "      <td>0.004040</td>\n",
       "      <td>0.010050</td>\n",
       "      <td>0.011463</td>\n",
       "      <td>0.011878</td>\n",
       "      <td>0.010433</td>\n",
       "      <td>0.010338</td>\n",
       "      <td>...</td>\n",
       "      <td>0.006389</td>\n",
       "      <td>0.004468</td>\n",
       "      <td>0.016368</td>\n",
       "      <td>0.021683</td>\n",
       "      <td>0.047048</td>\n",
       "      <td>1.023753</td>\n",
       "      <td>0.015468</td>\n",
       "      <td>0.014999</td>\n",
       "      <td>0.020343</td>\n",
       "      <td>0.027215</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>教育</th>\n",
       "      <td>0.000481</td>\n",
       "      <td>0.000787</td>\n",
       "      <td>0.000675</td>\n",
       "      <td>0.000856</td>\n",
       "      <td>0.000463</td>\n",
       "      <td>0.001015</td>\n",
       "      <td>0.001136</td>\n",
       "      <td>0.000885</td>\n",
       "      <td>0.000961</td>\n",
       "      <td>0.000890</td>\n",
       "      <td>...</td>\n",
       "      <td>0.003108</td>\n",
       "      <td>0.000833</td>\n",
       "      <td>0.001599</td>\n",
       "      <td>0.001742</td>\n",
       "      <td>0.001529</td>\n",
       "      <td>0.001199</td>\n",
       "      <td>1.015074</td>\n",
       "      <td>0.002484</td>\n",
       "      <td>0.002313</td>\n",
       "      <td>0.010470</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>卫生社会</th>\n",
       "      <td>0.000428</td>\n",
       "      <td>0.001229</td>\n",
       "      <td>0.000555</td>\n",
       "      <td>0.000620</td>\n",
       "      <td>0.000346</td>\n",
       "      <td>0.001108</td>\n",
       "      <td>0.001168</td>\n",
       "      <td>0.001298</td>\n",
       "      <td>0.001047</td>\n",
       "      <td>0.001989</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000519</td>\n",
       "      <td>0.000192</td>\n",
       "      <td>0.000687</td>\n",
       "      <td>0.000879</td>\n",
       "      <td>0.001247</td>\n",
       "      <td>0.000746</td>\n",
       "      <td>0.000688</td>\n",
       "      <td>1.006455</td>\n",
       "      <td>0.000982</td>\n",
       "      <td>0.003677</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>文化体育娱乐</th>\n",
       "      <td>0.001318</td>\n",
       "      <td>0.003535</td>\n",
       "      <td>0.002226</td>\n",
       "      <td>0.003702</td>\n",
       "      <td>0.002091</td>\n",
       "      <td>0.004770</td>\n",
       "      <td>0.004466</td>\n",
       "      <td>0.003933</td>\n",
       "      <td>0.004288</td>\n",
       "      <td>0.004114</td>\n",
       "      <td>...</td>\n",
       "      <td>0.011471</td>\n",
       "      <td>0.003598</td>\n",
       "      <td>0.008374</td>\n",
       "      <td>0.007067</td>\n",
       "      <td>0.007046</td>\n",
       "      <td>0.006393</td>\n",
       "      <td>0.006393</td>\n",
       "      <td>0.003761</td>\n",
       "      <td>1.065445</td>\n",
       "      <td>0.011551</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>公共管理和社会组织</th>\n",
       "      <td>0.000575</td>\n",
       "      <td>0.000483</td>\n",
       "      <td>0.000658</td>\n",
       "      <td>0.000808</td>\n",
       "      <td>0.000323</td>\n",
       "      <td>0.000975</td>\n",
       "      <td>0.000779</td>\n",
       "      <td>0.000758</td>\n",
       "      <td>0.000894</td>\n",
       "      <td>0.000682</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000881</td>\n",
       "      <td>0.001601</td>\n",
       "      <td>0.002107</td>\n",
       "      <td>0.001538</td>\n",
       "      <td>0.001306</td>\n",
       "      <td>0.001051</td>\n",
       "      <td>0.002029</td>\n",
       "      <td>0.000873</td>\n",
       "      <td>0.001356</td>\n",
       "      <td>1.027677</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>40 rows × 40 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                农林牧渔       采矿业      农副食品      食品饮料        烟草      纺织服装  \\\n",
       "农林牧渔        1.241885  0.019181  0.773409  0.450204  0.103607  0.274208   \n",
       "采矿业         0.045041  1.217345  0.042582  0.051428  0.020659  0.080045   \n",
       "农副食品        0.121876  0.009395  1.246532  0.274182  0.015288  0.069469   \n",
       "食品饮料        0.006820  0.007404  0.030886  1.139843  0.009087  0.011593   \n",
       "烟草          0.001863  0.004937  0.002697  0.003370  1.141276  0.005079   \n",
       "纺织服装        0.005855  0.018011  0.012057  0.017986  0.014435  1.724236   \n",
       "木材家具        0.002042  0.014820  0.002541  0.005196  0.004614  0.006894   \n",
       "造纸印刷        0.006404  0.011920  0.015086  0.041296  0.061422  0.026271   \n",
       "文体工美        0.001962  0.002512  0.002412  0.004308  0.001377  0.004088   \n",
       "石油化工        0.132957  0.125797  0.104480  0.107186  0.048457  0.189220   \n",
       "医药制品        0.007727  0.001297  0.005764  0.005096  0.001113  0.002934   \n",
       "化学纤维        0.000960  0.002022  0.001491  0.002305  0.011541  0.123438   \n",
       "橡胶塑料        0.017015  0.017048  0.021906  0.039984  0.011826  0.048037   \n",
       "非金属制品       0.004005  0.014549  0.004869  0.019424  0.003359  0.007898   \n",
       "黑色金属冶炼压延    0.006253  0.043999  0.007209  0.011218  0.004266  0.013102   \n",
       "有色金属冶炼压延    0.008793  0.027293  0.010337  0.015269  0.006464  0.018530   \n",
       "金属制品        0.006717  0.040426  0.008783  0.019002  0.007039  0.017717   \n",
       "通用设备        0.006840  0.029295  0.008280  0.010507  0.004539  0.015442   \n",
       "专用设备        0.012967  0.039772  0.009642  0.008897  0.003998  0.011060   \n",
       "汽车及零部件制造    0.009101  0.016074  0.012717  0.016299  0.006485  0.019598   \n",
       "其他交通设备      0.003052  0.002435  0.003045  0.002936  0.001156  0.003621   \n",
       "电气机械        0.007497  0.022919  0.010116  0.013549  0.006140  0.016729   \n",
       "计算机通信设备     0.011214  0.026206  0.015247  0.022018  0.009413  0.024020   \n",
       "其他制造业       0.005136  0.018824  0.007057  0.010567  0.007058  0.015127   \n",
       "水电燃         0.034447  0.111425  0.042796  0.051538  0.020518  0.076678   \n",
       "建筑业         0.001459  0.001798  0.001641  0.001927  0.001007  0.002369   \n",
       "批发零售        0.056604  0.059064  0.125951  0.136548  0.077945  0.164672   \n",
       "交通运输        0.051081  0.058916  0.084712  0.092791  0.042968  0.135807   \n",
       "餐饮住宿        0.007905  0.014112  0.012447  0.020352  0.010913  0.019010   \n",
       "软件和信息技术服务业  0.009918  0.015216  0.014273  0.020035  0.008242  0.024613   \n",
       "金融          0.036182  0.079303  0.045665  0.054780  0.023080  0.068127   \n",
       "房地产         0.010839  0.018231  0.019471  0.026528  0.012030  0.029033   \n",
       "租赁和商务服务     0.025333  0.063393  0.047930  0.106314  0.034747  0.083188   \n",
       "科学技术研究      0.011954  0.016763  0.010325  0.011370  0.005084  0.012856   \n",
       "水利生态设施管理    0.002551  0.002705  0.002462  0.003055  0.001846  0.004195   \n",
       "居民服务其他服务    0.004078  0.009061  0.005699  0.009500  0.004040  0.010050   \n",
       "教育          0.000481  0.000787  0.000675  0.000856  0.000463  0.001015   \n",
       "卫生社会        0.000428  0.001229  0.000555  0.000620  0.000346  0.001108   \n",
       "文化体育娱乐      0.001318  0.003535  0.002226  0.003702  0.002091  0.004770   \n",
       "公共管理和社会组织   0.000575  0.000483  0.000658  0.000808  0.000323  0.000975   \n",
       "\n",
       "                木材家具      造纸印刷      文体工美      石油化工  ...        金融       房地产  \\\n",
       "农林牧渔        0.250329  0.142308  0.103755  0.055818  ...  0.021802  0.013362   \n",
       "采矿业         0.096941  0.116652  0.147918  0.422804  ...  0.014902  0.013346   \n",
       "农副食品        0.037100  0.025494  0.026787  0.038073  ...  0.012855  0.007125   \n",
       "食品饮料        0.012089  0.011394  0.012413  0.019193  ...  0.008887  0.006784   \n",
       "烟草          0.007233  0.007333  0.007899  0.008114  ...  0.002918  0.003511   \n",
       "纺织服装        0.087599  0.027334  0.159045  0.021682  ...  0.015285  0.010221   \n",
       "木材家具        1.449775  0.024696  0.063346  0.008981  ...  0.002706  0.002575   \n",
       "造纸印刷        0.031272  1.442237  0.106164  0.018890  ...  0.027665  0.016830   \n",
       "文体工美        0.005260  0.005617  1.083719  0.003395  ...  0.011306  0.005290   \n",
       "石油化工        0.224924  0.253721  0.252925  1.510054  ...  0.029438  0.022053   \n",
       "医药制品        0.002653  0.006351  0.002092  0.003500  ...  0.000681  0.000387   \n",
       "化学纤维        0.008681  0.005464  0.031997  0.003920  ...  0.001518  0.001033   \n",
       "橡胶塑料        0.043509  0.057094  0.097133  0.039041  ...  0.005985  0.004765   \n",
       "非金属制品       0.020926  0.010279  0.019717  0.019060  ...  0.002824  0.004665   \n",
       "黑色金属冶炼压延    0.038499  0.016993  0.041348  0.024610  ...  0.004368  0.005533   \n",
       "有色金属冶炼压延    0.033678  0.033727  0.235019  0.038819  ...  0.008362  0.006499   \n",
       "金属制品        0.052019  0.020755  0.043070  0.026018  ...  0.006412  0.007387   \n",
       "通用设备        0.021561  0.017300  0.021514  0.026479  ...  0.003865  0.003095   \n",
       "专用设备        0.014135  0.019658  0.015260  0.021869  ...  0.002955  0.001775   \n",
       "汽车及零部件制造    0.017972  0.015472  0.020773  0.017591  ...  0.009313  0.007424   \n",
       "其他交通设备      0.003614  0.003462  0.003432  0.003115  ...  0.000946  0.000644   \n",
       "电气机械        0.019085  0.021008  0.032566  0.022848  ...  0.006902  0.006011   \n",
       "计算机通信设备     0.025247  0.039653  0.070952  0.027319  ...  0.019040  0.012801   \n",
       "其他制造业       0.016336  0.087110  0.029495  0.019896  ...  0.005288  0.005704   \n",
       "水电燃         0.090678  0.094627  0.093862  0.142123  ...  0.018749  0.019694   \n",
       "建筑业         0.002651  0.002224  0.002223  0.002300  ...  0.004060  0.015337   \n",
       "批发零售        0.186390  0.148240  0.146877  0.100743  ...  0.025894  0.019210   \n",
       "交通运输        0.115944  0.095041  0.116029  0.102967  ...  0.034523  0.022600   \n",
       "餐饮住宿        0.019508  0.020172  0.020644  0.017988  ...  0.033515  0.013895   \n",
       "软件和信息技术服务业  0.021469  0.021222  0.032221  0.020570  ...  0.053585  0.021706   \n",
       "金融          0.068918  0.077486  0.075572  0.079815  ...  1.106629  0.145065   \n",
       "房地产         0.030558  0.027265  0.030293  0.023283  ...  0.085451  1.062942   \n",
       "租赁和商务服务     0.073911  0.071838  0.109449  0.072894  ...  0.099138  0.093230   \n",
       "科学技术研究      0.015251  0.015691  0.012186  0.019133  ...  0.003298  0.003998   \n",
       "水利生态设施管理    0.003177  0.006375  0.003123  0.003302  ...  0.002750  0.001442   \n",
       "居民服务其他服务    0.011463  0.011878  0.010433  0.010338  ...  0.006389  0.004468   \n",
       "教育          0.001136  0.000885  0.000961  0.000890  ...  0.003108  0.000833   \n",
       "卫生社会        0.001168  0.001298  0.001047  0.001989  ...  0.000519  0.000192   \n",
       "文化体育娱乐      0.004466  0.003933  0.004288  0.004114  ...  0.011471  0.003598   \n",
       "公共管理和社会组织   0.000779  0.000758  0.000894  0.000682  ...  0.000881  0.001601   \n",
       "\n",
       "             租赁和商务服务    科学技术研究  水利生态设施管理  居民服务其他服务        教育      卫生社会  \\\n",
       "农林牧渔        0.069655  0.054107  0.144744  0.041970  0.034315  0.110722   \n",
       "采矿业         0.055617  0.073905  0.075130  0.054754  0.026494  0.038264   \n",
       "农副食品        0.039962  0.027903  0.036531  0.022387  0.028723  0.031129   \n",
       "食品饮料        0.019886  0.023030  0.019039  0.026592  0.014566  0.024334   \n",
       "烟草          0.009286  0.006971  0.009806  0.007798  0.007250  0.004023   \n",
       "纺织服装        0.048206  0.026386  0.036252  0.025578  0.012519  0.050346   \n",
       "木材家具        0.007278  0.005853  0.008260  0.006850  0.003477  0.003088   \n",
       "造纸印刷        0.116046  0.032536  0.018276  0.015853  0.030737  0.020719   \n",
       "文体工美        0.015137  0.007048  0.012255  0.007315  0.011447  0.005289   \n",
       "石油化工        0.115075  0.170575  0.173134  0.121014  0.057001  0.075443   \n",
       "医药制品        0.001772  0.008335  0.002966  0.001823  0.002529  0.405536   \n",
       "化学纤维        0.004721  0.004203  0.003978  0.002848  0.001551  0.005473   \n",
       "橡胶塑料        0.025003  0.024562  0.037548  0.026475  0.007401  0.015628   \n",
       "非金属制品       0.009781  0.016353  0.019330  0.009282  0.006910  0.010551   \n",
       "黑色金属冶炼压延    0.022546  0.024614  0.019041  0.016634  0.006014  0.011493   \n",
       "有色金属冶炼压延    0.036673  0.043648  0.029633  0.031403  0.010093  0.016096   \n",
       "金属制品        0.047508  0.050592  0.026595  0.026122  0.007590  0.012588   \n",
       "通用设备        0.014537  0.016627  0.015327  0.013148  0.005779  0.012057   \n",
       "专用设备        0.008807  0.010018  0.010353  0.007659  0.003115  0.042202   \n",
       "汽车及零部件制造    0.073391  0.026058  0.040595  0.052449  0.007864  0.015260   \n",
       "其他交通设备      0.003321  0.003897  0.004935  0.020407  0.001511  0.003099   \n",
       "电气机械        0.035792  0.054419  0.034727  0.032800  0.007584  0.015166   \n",
       "计算机通信设备     0.084069  0.145227  0.059461  0.106928  0.018627  0.030181   \n",
       "其他制造业       0.028205  0.078668  0.025878  0.022371  0.016826  0.009556   \n",
       "水电燃         0.049456  0.058508  0.084192  0.054730  0.028600  0.045425   \n",
       "建筑业         0.003433  0.003538  0.011932  0.004586  0.008059  0.003983   \n",
       "批发零售        0.100044  0.088805  0.082971  0.071634  0.035685  0.130369   \n",
       "交通运输        0.126578  0.099543  0.094065  0.066582  0.047557  0.092010   \n",
       "餐饮住宿        0.067807  0.056202  0.026007  0.021908  0.030921  0.020881   \n",
       "软件和信息技术服务业  0.042176  0.047325  0.038407  0.022765  0.034420  0.042291   \n",
       "金融          0.137232  0.087322  0.094743  0.060619  0.054344  0.058208   \n",
       "房地产         0.100790  0.049268  0.041229  0.126430  0.058071  0.041354   \n",
       "租赁和商务服务     1.178609  0.109940  0.083064  0.069121  0.037494  0.074543   \n",
       "科学技术研究      0.007965  1.139500  0.011762  0.006679  0.006428  0.009318   \n",
       "水利生态设施管理    0.006634  0.004141  1.034616  0.003358  0.002095  0.002852   \n",
       "居民服务其他服务    0.016368  0.021683  0.047048  1.023753  0.015468  0.014999   \n",
       "教育          0.001599  0.001742  0.001529  0.001199  1.015074  0.002484   \n",
       "卫生社会        0.000687  0.000879  0.001247  0.000746  0.000688  1.006455   \n",
       "文化体育娱乐      0.008374  0.007067  0.007046  0.006393  0.006393  0.003761   \n",
       "公共管理和社会组织   0.002107  0.001538  0.001306  0.001051  0.002029  0.000873   \n",
       "\n",
       "              文化体育娱乐  公共管理和社会组织  \n",
       "农林牧渔        0.069450   0.042786  \n",
       "采矿业         0.036459   0.029903  \n",
       "农副食品        0.038207   0.023113  \n",
       "食品饮料        0.065970   0.017361  \n",
       "烟草          0.016757   0.004910  \n",
       "纺织服装        0.067192   0.064254  \n",
       "木材家具        0.007236   0.010438  \n",
       "造纸印刷        0.075012   0.038446  \n",
       "文体工美        0.014439   0.012525  \n",
       "石油化工        0.075199   0.057140  \n",
       "医药制品        0.001645   0.002457  \n",
       "化学纤维        0.005760   0.005209  \n",
       "橡胶塑料        0.015852   0.011169  \n",
       "非金属制品       0.006475   0.006791  \n",
       "黑色金属冶炼压延    0.008395   0.008573  \n",
       "有色金属冶炼压延    0.014847   0.014260  \n",
       "金属制品        0.011366   0.010538  \n",
       "通用设备        0.007070   0.006252  \n",
       "专用设备        0.004747   0.004042  \n",
       "汽车及零部件制造    0.014890   0.016833  \n",
       "其他交通设备      0.002411   0.002869  \n",
       "电气机械        0.012828   0.014435  \n",
       "计算机通信设备     0.033362   0.037911  \n",
       "其他制造业       0.017496   0.009247  \n",
       "水电燃         0.047374   0.038195  \n",
       "建筑业         0.009043   0.015093  \n",
       "批发零售        0.077797   0.052204  \n",
       "交通运输        0.080413   0.072535  \n",
       "餐饮住宿        0.046830   0.058326  \n",
       "软件和信息技术服务业  0.038780   0.093501  \n",
       "金融          0.069720   0.061699  \n",
       "房地产         0.068445   0.047739  \n",
       "租赁和商务服务     0.096072   0.072801  \n",
       "科学技术研究      0.005822   0.005908  \n",
       "水利生态设施管理    0.004227   0.003780  \n",
       "居民服务其他服务    0.020343   0.027215  \n",
       "教育          0.002313   0.010470  \n",
       "卫生社会        0.000982   0.003677  \n",
       "文化体育娱乐      1.065445   0.011551  \n",
       "公共管理和社会组织   0.001356   1.027677  \n",
       "\n",
       "[40 rows x 40 columns]"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "io20.L"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "id": "c159f0c7",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=通用设备<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "通用设备",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "通用设备",
         "offsetgroup": "通用设备",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "j+BGyhZJmz+LGHYYk/7CPxmMEYlCy4o/+3PRkPEohT9pq5LIPsiSPxHlC1pIwJg/mkNSCyWTgz+VtyOcFryYP63boPZbO3E/FHgnnx7bwD9IowIn28BdP27eOCnMe2w/RnpRu18FqD+NX3glyXOdPwg8MIDwocY/QDOID+z4yz9QbXAi+rW5P5YGflTDvvQ/rKsCtRg8nD851sVtNICnP3JQwkzbv4I/npj1Yignvj82yY/4FWvEP9EINq5/16c/2gHXFTPCuz9e1y/YDdtmP61sH/KWq8E/EXAIVWr2vD/Zl2w82GKXP5dXrrfNVKA/+YOB597DtT/nilJCsKqePxdhinJp/LY/7upVZHRAkj+2oPfGEABsP8y209aIYIw/wXCuYYbGUz8VjErqBDRhPwN9Ik+Srnk/Kqc9JefETj8=",
          "dtype": "f8"
         },
         "yaxis": "y"
        },
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=专用设备<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "专用设备",
         "marker": {
          "color": "#EF553B",
          "pattern": {
           "shape": ""
          }
         },
         "name": "专用设备",
         "offsetgroup": "专用设备",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "nUzcKoiBnj9RE30+yoi/P+OL9nghHY4/QNtq1hnfhz9YVMTpJFuNPxbfUPhsHZw/xLDDmPT3gj8OnglNEkuaP0g17PfEOnU/YOY7+IkDwD/hDWlU4GRrP/g2/dmPFHE/3Siy1lBqrz8EAMeePZehP5FkVu9wO8I/Z5sb0xOWwj8i+rX103+2P06c3O9QFMQ/F9f4TPaP8j9a2T7kLVevP/q0iv7QzIM/2LeTiPAvuj8qNuZ1xCHJP8zuycNCrak/jxzpDIy8uD+XAz3UtmFkP51LcVXZd8E/6gWf5uRFvj8xsfm4NlScP7smpDUGnaA/j/0sliL5tj+zKOyi6IGfP0MDsWzmkLg/tCJqos9HmT89mBQfn5BtP4kHlE25wos/C5krg2qDUz+dL/ZefNFeP/dZZaa0/nY/uRluwOeHUT8=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "group",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "px.bar(io20.L[['通用设备','专用设备']], barmode='group')"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "94d53470",
   "metadata": {},
   "source": [
    "# 完全消耗系数"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "id": "e15b789c",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>农林牧渔</th>\n",
       "      <th>采矿业</th>\n",
       "      <th>农副食品</th>\n",
       "      <th>食品饮料</th>\n",
       "      <th>烟草</th>\n",
       "      <th>纺织服装</th>\n",
       "      <th>木材家具</th>\n",
       "      <th>造纸印刷</th>\n",
       "      <th>文体工美</th>\n",
       "      <th>石油化工</th>\n",
       "      <th>...</th>\n",
       "      <th>金融</th>\n",
       "      <th>房地产</th>\n",
       "      <th>租赁和商务服务</th>\n",
       "      <th>科学技术研究</th>\n",
       "      <th>水利生态设施管理</th>\n",
       "      <th>居民服务其他服务</th>\n",
       "      <th>教育</th>\n",
       "      <th>卫生社会</th>\n",
       "      <th>文化体育娱乐</th>\n",
       "      <th>公共管理和社会组织</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>农林牧渔</th>\n",
       "      <td>0.241885</td>\n",
       "      <td>0.019181</td>\n",
       "      <td>0.773409</td>\n",
       "      <td>0.450204</td>\n",
       "      <td>0.103607</td>\n",
       "      <td>0.274208</td>\n",
       "      <td>0.250329</td>\n",
       "      <td>0.142308</td>\n",
       "      <td>0.103755</td>\n",
       "      <td>0.055818</td>\n",
       "      <td>...</td>\n",
       "      <td>0.021802</td>\n",
       "      <td>0.013362</td>\n",
       "      <td>0.069655</td>\n",
       "      <td>0.054107</td>\n",
       "      <td>0.144744</td>\n",
       "      <td>0.041970</td>\n",
       "      <td>0.034315</td>\n",
       "      <td>0.110722</td>\n",
       "      <td>0.069450</td>\n",
       "      <td>0.042786</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>采矿业</th>\n",
       "      <td>0.045041</td>\n",
       "      <td>0.217345</td>\n",
       "      <td>0.042582</td>\n",
       "      <td>0.051428</td>\n",
       "      <td>0.020659</td>\n",
       "      <td>0.080045</td>\n",
       "      <td>0.096941</td>\n",
       "      <td>0.116652</td>\n",
       "      <td>0.147918</td>\n",
       "      <td>0.422804</td>\n",
       "      <td>...</td>\n",
       "      <td>0.014902</td>\n",
       "      <td>0.013346</td>\n",
       "      <td>0.055617</td>\n",
       "      <td>0.073905</td>\n",
       "      <td>0.075130</td>\n",
       "      <td>0.054754</td>\n",
       "      <td>0.026494</td>\n",
       "      <td>0.038264</td>\n",
       "      <td>0.036459</td>\n",
       "      <td>0.029903</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>农副食品</th>\n",
       "      <td>0.121876</td>\n",
       "      <td>0.009395</td>\n",
       "      <td>0.246532</td>\n",
       "      <td>0.274182</td>\n",
       "      <td>0.015288</td>\n",
       "      <td>0.069469</td>\n",
       "      <td>0.037100</td>\n",
       "      <td>0.025494</td>\n",
       "      <td>0.026787</td>\n",
       "      <td>0.038073</td>\n",
       "      <td>...</td>\n",
       "      <td>0.012855</td>\n",
       "      <td>0.007125</td>\n",
       "      <td>0.039962</td>\n",
       "      <td>0.027903</td>\n",
       "      <td>0.036531</td>\n",
       "      <td>0.022387</td>\n",
       "      <td>0.028723</td>\n",
       "      <td>0.031129</td>\n",
       "      <td>0.038207</td>\n",
       "      <td>0.023113</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>食品饮料</th>\n",
       "      <td>0.006820</td>\n",
       "      <td>0.007404</td>\n",
       "      <td>0.030886</td>\n",
       "      <td>0.139843</td>\n",
       "      <td>0.009087</td>\n",
       "      <td>0.011593</td>\n",
       "      <td>0.012089</td>\n",
       "      <td>0.011394</td>\n",
       "      <td>0.012413</td>\n",
       "      <td>0.019193</td>\n",
       "      <td>...</td>\n",
       "      <td>0.008887</td>\n",
       "      <td>0.006784</td>\n",
       "      <td>0.019886</td>\n",
       "      <td>0.023030</td>\n",
       "      <td>0.019039</td>\n",
       "      <td>0.026592</td>\n",
       "      <td>0.014566</td>\n",
       "      <td>0.024334</td>\n",
       "      <td>0.065970</td>\n",
       "      <td>0.017361</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>烟草</th>\n",
       "      <td>0.001863</td>\n",
       "      <td>0.004937</td>\n",
       "      <td>0.002697</td>\n",
       "      <td>0.003370</td>\n",
       "      <td>0.141276</td>\n",
       "      <td>0.005079</td>\n",
       "      <td>0.007233</td>\n",
       "      <td>0.007333</td>\n",
       "      <td>0.007899</td>\n",
       "      <td>0.008114</td>\n",
       "      <td>...</td>\n",
       "      <td>0.002918</td>\n",
       "      <td>0.003511</td>\n",
       "      <td>0.009286</td>\n",
       "      <td>0.006971</td>\n",
       "      <td>0.009806</td>\n",
       "      <td>0.007798</td>\n",
       "      <td>0.007250</td>\n",
       "      <td>0.004023</td>\n",
       "      <td>0.016757</td>\n",
       "      <td>0.004910</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>纺织服装</th>\n",
       "      <td>0.005855</td>\n",
       "      <td>0.018011</td>\n",
       "      <td>0.012057</td>\n",
       "      <td>0.017986</td>\n",
       "      <td>0.014435</td>\n",
       "      <td>0.724236</td>\n",
       "      <td>0.087599</td>\n",
       "      <td>0.027334</td>\n",
       "      <td>0.159045</td>\n",
       "      <td>0.021682</td>\n",
       "      <td>...</td>\n",
       "      <td>0.015285</td>\n",
       "      <td>0.010221</td>\n",
       "      <td>0.048206</td>\n",
       "      <td>0.026386</td>\n",
       "      <td>0.036252</td>\n",
       "      <td>0.025578</td>\n",
       "      <td>0.012519</td>\n",
       "      <td>0.050346</td>\n",
       "      <td>0.067192</td>\n",
       "      <td>0.064254</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>木材家具</th>\n",
       "      <td>0.002042</td>\n",
       "      <td>0.014820</td>\n",
       "      <td>0.002541</td>\n",
       "      <td>0.005196</td>\n",
       "      <td>0.004614</td>\n",
       "      <td>0.006894</td>\n",
       "      <td>0.449775</td>\n",
       "      <td>0.024696</td>\n",
       "      <td>0.063346</td>\n",
       "      <td>0.008981</td>\n",
       "      <td>...</td>\n",
       "      <td>0.002706</td>\n",
       "      <td>0.002575</td>\n",
       "      <td>0.007278</td>\n",
       "      <td>0.005853</td>\n",
       "      <td>0.008260</td>\n",
       "      <td>0.006850</td>\n",
       "      <td>0.003477</td>\n",
       "      <td>0.003088</td>\n",
       "      <td>0.007236</td>\n",
       "      <td>0.010438</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>造纸印刷</th>\n",
       "      <td>0.006404</td>\n",
       "      <td>0.011920</td>\n",
       "      <td>0.015086</td>\n",
       "      <td>0.041296</td>\n",
       "      <td>0.061422</td>\n",
       "      <td>0.026271</td>\n",
       "      <td>0.031272</td>\n",
       "      <td>0.442237</td>\n",
       "      <td>0.106164</td>\n",
       "      <td>0.018890</td>\n",
       "      <td>...</td>\n",
       "      <td>0.027665</td>\n",
       "      <td>0.016830</td>\n",
       "      <td>0.116046</td>\n",
       "      <td>0.032536</td>\n",
       "      <td>0.018276</td>\n",
       "      <td>0.015853</td>\n",
       "      <td>0.030737</td>\n",
       "      <td>0.020719</td>\n",
       "      <td>0.075012</td>\n",
       "      <td>0.038446</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>文体工美</th>\n",
       "      <td>0.001962</td>\n",
       "      <td>0.002512</td>\n",
       "      <td>0.002412</td>\n",
       "      <td>0.004308</td>\n",
       "      <td>0.001377</td>\n",
       "      <td>0.004088</td>\n",
       "      <td>0.005260</td>\n",
       "      <td>0.005617</td>\n",
       "      <td>0.083719</td>\n",
       "      <td>0.003395</td>\n",
       "      <td>...</td>\n",
       "      <td>0.011306</td>\n",
       "      <td>0.005290</td>\n",
       "      <td>0.015137</td>\n",
       "      <td>0.007048</td>\n",
       "      <td>0.012255</td>\n",
       "      <td>0.007315</td>\n",
       "      <td>0.011447</td>\n",
       "      <td>0.005289</td>\n",
       "      <td>0.014439</td>\n",
       "      <td>0.012525</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>石油化工</th>\n",
       "      <td>0.132957</td>\n",
       "      <td>0.125797</td>\n",
       "      <td>0.104480</td>\n",
       "      <td>0.107186</td>\n",
       "      <td>0.048457</td>\n",
       "      <td>0.189220</td>\n",
       "      <td>0.224924</td>\n",
       "      <td>0.253721</td>\n",
       "      <td>0.252925</td>\n",
       "      <td>0.510054</td>\n",
       "      <td>...</td>\n",
       "      <td>0.029438</td>\n",
       "      <td>0.022053</td>\n",
       "      <td>0.115075</td>\n",
       "      <td>0.170575</td>\n",
       "      <td>0.173134</td>\n",
       "      <td>0.121014</td>\n",
       "      <td>0.057001</td>\n",
       "      <td>0.075443</td>\n",
       "      <td>0.075199</td>\n",
       "      <td>0.057140</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>医药制品</th>\n",
       "      <td>0.007727</td>\n",
       "      <td>0.001297</td>\n",
       "      <td>0.005764</td>\n",
       "      <td>0.005096</td>\n",
       "      <td>0.001113</td>\n",
       "      <td>0.002934</td>\n",
       "      <td>0.002653</td>\n",
       "      <td>0.006351</td>\n",
       "      <td>0.002092</td>\n",
       "      <td>0.003500</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000681</td>\n",
       "      <td>0.000387</td>\n",
       "      <td>0.001772</td>\n",
       "      <td>0.008335</td>\n",
       "      <td>0.002966</td>\n",
       "      <td>0.001823</td>\n",
       "      <td>0.002529</td>\n",
       "      <td>0.405536</td>\n",
       "      <td>0.001645</td>\n",
       "      <td>0.002457</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>化学纤维</th>\n",
       "      <td>0.000960</td>\n",
       "      <td>0.002022</td>\n",
       "      <td>0.001491</td>\n",
       "      <td>0.002305</td>\n",
       "      <td>0.011541</td>\n",
       "      <td>0.123438</td>\n",
       "      <td>0.008681</td>\n",
       "      <td>0.005464</td>\n",
       "      <td>0.031997</td>\n",
       "      <td>0.003920</td>\n",
       "      <td>...</td>\n",
       "      <td>0.001518</td>\n",
       "      <td>0.001033</td>\n",
       "      <td>0.004721</td>\n",
       "      <td>0.004203</td>\n",
       "      <td>0.003978</td>\n",
       "      <td>0.002848</td>\n",
       "      <td>0.001551</td>\n",
       "      <td>0.005473</td>\n",
       "      <td>0.005760</td>\n",
       "      <td>0.005209</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>橡胶塑料</th>\n",
       "      <td>0.017015</td>\n",
       "      <td>0.017048</td>\n",
       "      <td>0.021906</td>\n",
       "      <td>0.039984</td>\n",
       "      <td>0.011826</td>\n",
       "      <td>0.048037</td>\n",
       "      <td>0.043509</td>\n",
       "      <td>0.057094</td>\n",
       "      <td>0.097133</td>\n",
       "      <td>0.039041</td>\n",
       "      <td>...</td>\n",
       "      <td>0.005985</td>\n",
       "      <td>0.004765</td>\n",
       "      <td>0.025003</td>\n",
       "      <td>0.024562</td>\n",
       "      <td>0.037548</td>\n",
       "      <td>0.026475</td>\n",
       "      <td>0.007401</td>\n",
       "      <td>0.015628</td>\n",
       "      <td>0.015852</td>\n",
       "      <td>0.011169</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>非金属制品</th>\n",
       "      <td>0.004005</td>\n",
       "      <td>0.014549</td>\n",
       "      <td>0.004869</td>\n",
       "      <td>0.019424</td>\n",
       "      <td>0.003359</td>\n",
       "      <td>0.007898</td>\n",
       "      <td>0.020926</td>\n",
       "      <td>0.010279</td>\n",
       "      <td>0.019717</td>\n",
       "      <td>0.019060</td>\n",
       "      <td>...</td>\n",
       "      <td>0.002824</td>\n",
       "      <td>0.004665</td>\n",
       "      <td>0.009781</td>\n",
       "      <td>0.016353</td>\n",
       "      <td>0.019330</td>\n",
       "      <td>0.009282</td>\n",
       "      <td>0.006910</td>\n",
       "      <td>0.010551</td>\n",
       "      <td>0.006475</td>\n",
       "      <td>0.006791</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>黑色金属冶炼压延</th>\n",
       "      <td>0.006253</td>\n",
       "      <td>0.043999</td>\n",
       "      <td>0.007209</td>\n",
       "      <td>0.011218</td>\n",
       "      <td>0.004266</td>\n",
       "      <td>0.013102</td>\n",
       "      <td>0.038499</td>\n",
       "      <td>0.016993</td>\n",
       "      <td>0.041348</td>\n",
       "      <td>0.024610</td>\n",
       "      <td>...</td>\n",
       "      <td>0.004368</td>\n",
       "      <td>0.005533</td>\n",
       "      <td>0.022546</td>\n",
       "      <td>0.024614</td>\n",
       "      <td>0.019041</td>\n",
       "      <td>0.016634</td>\n",
       "      <td>0.006014</td>\n",
       "      <td>0.011493</td>\n",
       "      <td>0.008395</td>\n",
       "      <td>0.008573</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>有色金属冶炼压延</th>\n",
       "      <td>0.008793</td>\n",
       "      <td>0.027293</td>\n",
       "      <td>0.010337</td>\n",
       "      <td>0.015269</td>\n",
       "      <td>0.006464</td>\n",
       "      <td>0.018530</td>\n",
       "      <td>0.033678</td>\n",
       "      <td>0.033727</td>\n",
       "      <td>0.235019</td>\n",
       "      <td>0.038819</td>\n",
       "      <td>...</td>\n",
       "      <td>0.008362</td>\n",
       "      <td>0.006499</td>\n",
       "      <td>0.036673</td>\n",
       "      <td>0.043648</td>\n",
       "      <td>0.029633</td>\n",
       "      <td>0.031403</td>\n",
       "      <td>0.010093</td>\n",
       "      <td>0.016096</td>\n",
       "      <td>0.014847</td>\n",
       "      <td>0.014260</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>金属制品</th>\n",
       "      <td>0.006717</td>\n",
       "      <td>0.040426</td>\n",
       "      <td>0.008783</td>\n",
       "      <td>0.019002</td>\n",
       "      <td>0.007039</td>\n",
       "      <td>0.017717</td>\n",
       "      <td>0.052019</td>\n",
       "      <td>0.020755</td>\n",
       "      <td>0.043070</td>\n",
       "      <td>0.026018</td>\n",
       "      <td>...</td>\n",
       "      <td>0.006412</td>\n",
       "      <td>0.007387</td>\n",
       "      <td>0.047508</td>\n",
       "      <td>0.050592</td>\n",
       "      <td>0.026595</td>\n",
       "      <td>0.026122</td>\n",
       "      <td>0.007590</td>\n",
       "      <td>0.012588</td>\n",
       "      <td>0.011366</td>\n",
       "      <td>0.010538</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>通用设备</th>\n",
       "      <td>0.006840</td>\n",
       "      <td>0.029295</td>\n",
       "      <td>0.008280</td>\n",
       "      <td>0.010507</td>\n",
       "      <td>0.004539</td>\n",
       "      <td>0.015442</td>\n",
       "      <td>0.021561</td>\n",
       "      <td>0.017300</td>\n",
       "      <td>0.021514</td>\n",
       "      <td>0.026479</td>\n",
       "      <td>...</td>\n",
       "      <td>0.003865</td>\n",
       "      <td>0.003095</td>\n",
       "      <td>0.014537</td>\n",
       "      <td>0.016627</td>\n",
       "      <td>0.015327</td>\n",
       "      <td>0.013148</td>\n",
       "      <td>0.005779</td>\n",
       "      <td>0.012057</td>\n",
       "      <td>0.007070</td>\n",
       "      <td>0.006252</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>专用设备</th>\n",
       "      <td>0.012967</td>\n",
       "      <td>0.039772</td>\n",
       "      <td>0.009642</td>\n",
       "      <td>0.008897</td>\n",
       "      <td>0.003998</td>\n",
       "      <td>0.011060</td>\n",
       "      <td>0.014135</td>\n",
       "      <td>0.019658</td>\n",
       "      <td>0.015260</td>\n",
       "      <td>0.021869</td>\n",
       "      <td>...</td>\n",
       "      <td>0.002955</td>\n",
       "      <td>0.001775</td>\n",
       "      <td>0.008807</td>\n",
       "      <td>0.010018</td>\n",
       "      <td>0.010353</td>\n",
       "      <td>0.007659</td>\n",
       "      <td>0.003115</td>\n",
       "      <td>0.042202</td>\n",
       "      <td>0.004747</td>\n",
       "      <td>0.004042</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>汽车及零部件制造</th>\n",
       "      <td>0.009101</td>\n",
       "      <td>0.016074</td>\n",
       "      <td>0.012717</td>\n",
       "      <td>0.016299</td>\n",
       "      <td>0.006485</td>\n",
       "      <td>0.019598</td>\n",
       "      <td>0.017972</td>\n",
       "      <td>0.015472</td>\n",
       "      <td>0.020773</td>\n",
       "      <td>0.017591</td>\n",
       "      <td>...</td>\n",
       "      <td>0.009313</td>\n",
       "      <td>0.007424</td>\n",
       "      <td>0.073391</td>\n",
       "      <td>0.026058</td>\n",
       "      <td>0.040595</td>\n",
       "      <td>0.052449</td>\n",
       "      <td>0.007864</td>\n",
       "      <td>0.015260</td>\n",
       "      <td>0.014890</td>\n",
       "      <td>0.016833</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>其他交通设备</th>\n",
       "      <td>0.003052</td>\n",
       "      <td>0.002435</td>\n",
       "      <td>0.003045</td>\n",
       "      <td>0.002936</td>\n",
       "      <td>0.001156</td>\n",
       "      <td>0.003621</td>\n",
       "      <td>0.003614</td>\n",
       "      <td>0.003462</td>\n",
       "      <td>0.003432</td>\n",
       "      <td>0.003115</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000946</td>\n",
       "      <td>0.000644</td>\n",
       "      <td>0.003321</td>\n",
       "      <td>0.003897</td>\n",
       "      <td>0.004935</td>\n",
       "      <td>0.020407</td>\n",
       "      <td>0.001511</td>\n",
       "      <td>0.003099</td>\n",
       "      <td>0.002411</td>\n",
       "      <td>0.002869</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>电气机械</th>\n",
       "      <td>0.007497</td>\n",
       "      <td>0.022919</td>\n",
       "      <td>0.010116</td>\n",
       "      <td>0.013549</td>\n",
       "      <td>0.006140</td>\n",
       "      <td>0.016729</td>\n",
       "      <td>0.019085</td>\n",
       "      <td>0.021008</td>\n",
       "      <td>0.032566</td>\n",
       "      <td>0.022848</td>\n",
       "      <td>...</td>\n",
       "      <td>0.006902</td>\n",
       "      <td>0.006011</td>\n",
       "      <td>0.035792</td>\n",
       "      <td>0.054419</td>\n",
       "      <td>0.034727</td>\n",
       "      <td>0.032800</td>\n",
       "      <td>0.007584</td>\n",
       "      <td>0.015166</td>\n",
       "      <td>0.012828</td>\n",
       "      <td>0.014435</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>计算机通信设备</th>\n",
       "      <td>0.011214</td>\n",
       "      <td>0.026206</td>\n",
       "      <td>0.015247</td>\n",
       "      <td>0.022018</td>\n",
       "      <td>0.009413</td>\n",
       "      <td>0.024020</td>\n",
       "      <td>0.025247</td>\n",
       "      <td>0.039653</td>\n",
       "      <td>0.070952</td>\n",
       "      <td>0.027319</td>\n",
       "      <td>...</td>\n",
       "      <td>0.019040</td>\n",
       "      <td>0.012801</td>\n",
       "      <td>0.084069</td>\n",
       "      <td>0.145227</td>\n",
       "      <td>0.059461</td>\n",
       "      <td>0.106928</td>\n",
       "      <td>0.018627</td>\n",
       "      <td>0.030181</td>\n",
       "      <td>0.033362</td>\n",
       "      <td>0.037911</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>其他制造业</th>\n",
       "      <td>0.005136</td>\n",
       "      <td>0.018824</td>\n",
       "      <td>0.007057</td>\n",
       "      <td>0.010567</td>\n",
       "      <td>0.007058</td>\n",
       "      <td>0.015127</td>\n",
       "      <td>0.016336</td>\n",
       "      <td>0.087110</td>\n",
       "      <td>0.029495</td>\n",
       "      <td>0.019896</td>\n",
       "      <td>...</td>\n",
       "      <td>0.005288</td>\n",
       "      <td>0.005704</td>\n",
       "      <td>0.028205</td>\n",
       "      <td>0.078668</td>\n",
       "      <td>0.025878</td>\n",
       "      <td>0.022371</td>\n",
       "      <td>0.016826</td>\n",
       "      <td>0.009556</td>\n",
       "      <td>0.017496</td>\n",
       "      <td>0.009247</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>水电燃</th>\n",
       "      <td>0.034447</td>\n",
       "      <td>0.111425</td>\n",
       "      <td>0.042796</td>\n",
       "      <td>0.051538</td>\n",
       "      <td>0.020518</td>\n",
       "      <td>0.076678</td>\n",
       "      <td>0.090678</td>\n",
       "      <td>0.094627</td>\n",
       "      <td>0.093862</td>\n",
       "      <td>0.142123</td>\n",
       "      <td>...</td>\n",
       "      <td>0.018749</td>\n",
       "      <td>0.019694</td>\n",
       "      <td>0.049456</td>\n",
       "      <td>0.058508</td>\n",
       "      <td>0.084192</td>\n",
       "      <td>0.054730</td>\n",
       "      <td>0.028600</td>\n",
       "      <td>0.045425</td>\n",
       "      <td>0.047374</td>\n",
       "      <td>0.038195</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>建筑业</th>\n",
       "      <td>0.001459</td>\n",
       "      <td>0.001798</td>\n",
       "      <td>0.001641</td>\n",
       "      <td>0.001927</td>\n",
       "      <td>0.001007</td>\n",
       "      <td>0.002369</td>\n",
       "      <td>0.002651</td>\n",
       "      <td>0.002224</td>\n",
       "      <td>0.002223</td>\n",
       "      <td>0.002300</td>\n",
       "      <td>...</td>\n",
       "      <td>0.004060</td>\n",
       "      <td>0.015337</td>\n",
       "      <td>0.003433</td>\n",
       "      <td>0.003538</td>\n",
       "      <td>0.011932</td>\n",
       "      <td>0.004586</td>\n",
       "      <td>0.008059</td>\n",
       "      <td>0.003983</td>\n",
       "      <td>0.009043</td>\n",
       "      <td>0.015093</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>批发零售</th>\n",
       "      <td>0.056604</td>\n",
       "      <td>0.059064</td>\n",
       "      <td>0.125951</td>\n",
       "      <td>0.136548</td>\n",
       "      <td>0.077945</td>\n",
       "      <td>0.164672</td>\n",
       "      <td>0.186390</td>\n",
       "      <td>0.148240</td>\n",
       "      <td>0.146877</td>\n",
       "      <td>0.100743</td>\n",
       "      <td>...</td>\n",
       "      <td>0.025894</td>\n",
       "      <td>0.019210</td>\n",
       "      <td>0.100044</td>\n",
       "      <td>0.088805</td>\n",
       "      <td>0.082971</td>\n",
       "      <td>0.071634</td>\n",
       "      <td>0.035685</td>\n",
       "      <td>0.130369</td>\n",
       "      <td>0.077797</td>\n",
       "      <td>0.052204</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>交通运输</th>\n",
       "      <td>0.051081</td>\n",
       "      <td>0.058916</td>\n",
       "      <td>0.084712</td>\n",
       "      <td>0.092791</td>\n",
       "      <td>0.042968</td>\n",
       "      <td>0.135807</td>\n",
       "      <td>0.115944</td>\n",
       "      <td>0.095041</td>\n",
       "      <td>0.116029</td>\n",
       "      <td>0.102967</td>\n",
       "      <td>...</td>\n",
       "      <td>0.034523</td>\n",
       "      <td>0.022600</td>\n",
       "      <td>0.126578</td>\n",
       "      <td>0.099543</td>\n",
       "      <td>0.094065</td>\n",
       "      <td>0.066582</td>\n",
       "      <td>0.047557</td>\n",
       "      <td>0.092010</td>\n",
       "      <td>0.080413</td>\n",
       "      <td>0.072535</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>餐饮住宿</th>\n",
       "      <td>0.007905</td>\n",
       "      <td>0.014112</td>\n",
       "      <td>0.012447</td>\n",
       "      <td>0.020352</td>\n",
       "      <td>0.010913</td>\n",
       "      <td>0.019010</td>\n",
       "      <td>0.019508</td>\n",
       "      <td>0.020172</td>\n",
       "      <td>0.020644</td>\n",
       "      <td>0.017988</td>\n",
       "      <td>...</td>\n",
       "      <td>0.033515</td>\n",
       "      <td>0.013895</td>\n",
       "      <td>0.067807</td>\n",
       "      <td>0.056202</td>\n",
       "      <td>0.026007</td>\n",
       "      <td>0.021908</td>\n",
       "      <td>0.030921</td>\n",
       "      <td>0.020881</td>\n",
       "      <td>0.046830</td>\n",
       "      <td>0.058326</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>软件和信息技术服务业</th>\n",
       "      <td>0.009918</td>\n",
       "      <td>0.015216</td>\n",
       "      <td>0.014273</td>\n",
       "      <td>0.020035</td>\n",
       "      <td>0.008242</td>\n",
       "      <td>0.024613</td>\n",
       "      <td>0.021469</td>\n",
       "      <td>0.021222</td>\n",
       "      <td>0.032221</td>\n",
       "      <td>0.020570</td>\n",
       "      <td>...</td>\n",
       "      <td>0.053585</td>\n",
       "      <td>0.021706</td>\n",
       "      <td>0.042176</td>\n",
       "      <td>0.047325</td>\n",
       "      <td>0.038407</td>\n",
       "      <td>0.022765</td>\n",
       "      <td>0.034420</td>\n",
       "      <td>0.042291</td>\n",
       "      <td>0.038780</td>\n",
       "      <td>0.093501</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>金融</th>\n",
       "      <td>0.036182</td>\n",
       "      <td>0.079303</td>\n",
       "      <td>0.045665</td>\n",
       "      <td>0.054780</td>\n",
       "      <td>0.023080</td>\n",
       "      <td>0.068127</td>\n",
       "      <td>0.068918</td>\n",
       "      <td>0.077486</td>\n",
       "      <td>0.075572</td>\n",
       "      <td>0.079815</td>\n",
       "      <td>...</td>\n",
       "      <td>0.106629</td>\n",
       "      <td>0.145065</td>\n",
       "      <td>0.137232</td>\n",
       "      <td>0.087322</td>\n",
       "      <td>0.094743</td>\n",
       "      <td>0.060619</td>\n",
       "      <td>0.054344</td>\n",
       "      <td>0.058208</td>\n",
       "      <td>0.069720</td>\n",
       "      <td>0.061699</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>房地产</th>\n",
       "      <td>0.010839</td>\n",
       "      <td>0.018231</td>\n",
       "      <td>0.019471</td>\n",
       "      <td>0.026528</td>\n",
       "      <td>0.012030</td>\n",
       "      <td>0.029033</td>\n",
       "      <td>0.030558</td>\n",
       "      <td>0.027265</td>\n",
       "      <td>0.030293</td>\n",
       "      <td>0.023283</td>\n",
       "      <td>...</td>\n",
       "      <td>0.085451</td>\n",
       "      <td>0.062942</td>\n",
       "      <td>0.100790</td>\n",
       "      <td>0.049268</td>\n",
       "      <td>0.041229</td>\n",
       "      <td>0.126430</td>\n",
       "      <td>0.058071</td>\n",
       "      <td>0.041354</td>\n",
       "      <td>0.068445</td>\n",
       "      <td>0.047739</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>租赁和商务服务</th>\n",
       "      <td>0.025333</td>\n",
       "      <td>0.063393</td>\n",
       "      <td>0.047930</td>\n",
       "      <td>0.106314</td>\n",
       "      <td>0.034747</td>\n",
       "      <td>0.083188</td>\n",
       "      <td>0.073911</td>\n",
       "      <td>0.071838</td>\n",
       "      <td>0.109449</td>\n",
       "      <td>0.072894</td>\n",
       "      <td>...</td>\n",
       "      <td>0.099138</td>\n",
       "      <td>0.093230</td>\n",
       "      <td>0.178609</td>\n",
       "      <td>0.109940</td>\n",
       "      <td>0.083064</td>\n",
       "      <td>0.069121</td>\n",
       "      <td>0.037494</td>\n",
       "      <td>0.074543</td>\n",
       "      <td>0.096072</td>\n",
       "      <td>0.072801</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>科学技术研究</th>\n",
       "      <td>0.011954</td>\n",
       "      <td>0.016763</td>\n",
       "      <td>0.010325</td>\n",
       "      <td>0.011370</td>\n",
       "      <td>0.005084</td>\n",
       "      <td>0.012856</td>\n",
       "      <td>0.015251</td>\n",
       "      <td>0.015691</td>\n",
       "      <td>0.012186</td>\n",
       "      <td>0.019133</td>\n",
       "      <td>...</td>\n",
       "      <td>0.003298</td>\n",
       "      <td>0.003998</td>\n",
       "      <td>0.007965</td>\n",
       "      <td>0.139500</td>\n",
       "      <td>0.011762</td>\n",
       "      <td>0.006679</td>\n",
       "      <td>0.006428</td>\n",
       "      <td>0.009318</td>\n",
       "      <td>0.005822</td>\n",
       "      <td>0.005908</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>水利生态设施管理</th>\n",
       "      <td>0.002551</td>\n",
       "      <td>0.002705</td>\n",
       "      <td>0.002462</td>\n",
       "      <td>0.003055</td>\n",
       "      <td>0.001846</td>\n",
       "      <td>0.004195</td>\n",
       "      <td>0.003177</td>\n",
       "      <td>0.006375</td>\n",
       "      <td>0.003123</td>\n",
       "      <td>0.003302</td>\n",
       "      <td>...</td>\n",
       "      <td>0.002750</td>\n",
       "      <td>0.001442</td>\n",
       "      <td>0.006634</td>\n",
       "      <td>0.004141</td>\n",
       "      <td>0.034616</td>\n",
       "      <td>0.003358</td>\n",
       "      <td>0.002095</td>\n",
       "      <td>0.002852</td>\n",
       "      <td>0.004227</td>\n",
       "      <td>0.003780</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>居民服务其他服务</th>\n",
       "      <td>0.004078</td>\n",
       "      <td>0.009061</td>\n",
       "      <td>0.005699</td>\n",
       "      <td>0.009500</td>\n",
       "      <td>0.004040</td>\n",
       "      <td>0.010050</td>\n",
       "      <td>0.011463</td>\n",
       "      <td>0.011878</td>\n",
       "      <td>0.010433</td>\n",
       "      <td>0.010338</td>\n",
       "      <td>...</td>\n",
       "      <td>0.006389</td>\n",
       "      <td>0.004468</td>\n",
       "      <td>0.016368</td>\n",
       "      <td>0.021683</td>\n",
       "      <td>0.047048</td>\n",
       "      <td>0.023753</td>\n",
       "      <td>0.015468</td>\n",
       "      <td>0.014999</td>\n",
       "      <td>0.020343</td>\n",
       "      <td>0.027215</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>教育</th>\n",
       "      <td>0.000481</td>\n",
       "      <td>0.000787</td>\n",
       "      <td>0.000675</td>\n",
       "      <td>0.000856</td>\n",
       "      <td>0.000463</td>\n",
       "      <td>0.001015</td>\n",
       "      <td>0.001136</td>\n",
       "      <td>0.000885</td>\n",
       "      <td>0.000961</td>\n",
       "      <td>0.000890</td>\n",
       "      <td>...</td>\n",
       "      <td>0.003108</td>\n",
       "      <td>0.000833</td>\n",
       "      <td>0.001599</td>\n",
       "      <td>0.001742</td>\n",
       "      <td>0.001529</td>\n",
       "      <td>0.001199</td>\n",
       "      <td>0.015074</td>\n",
       "      <td>0.002484</td>\n",
       "      <td>0.002313</td>\n",
       "      <td>0.010470</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>卫生社会</th>\n",
       "      <td>0.000428</td>\n",
       "      <td>0.001229</td>\n",
       "      <td>0.000555</td>\n",
       "      <td>0.000620</td>\n",
       "      <td>0.000346</td>\n",
       "      <td>0.001108</td>\n",
       "      <td>0.001168</td>\n",
       "      <td>0.001298</td>\n",
       "      <td>0.001047</td>\n",
       "      <td>0.001989</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000519</td>\n",
       "      <td>0.000192</td>\n",
       "      <td>0.000687</td>\n",
       "      <td>0.000879</td>\n",
       "      <td>0.001247</td>\n",
       "      <td>0.000746</td>\n",
       "      <td>0.000688</td>\n",
       "      <td>0.006455</td>\n",
       "      <td>0.000982</td>\n",
       "      <td>0.003677</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>文化体育娱乐</th>\n",
       "      <td>0.001318</td>\n",
       "      <td>0.003535</td>\n",
       "      <td>0.002226</td>\n",
       "      <td>0.003702</td>\n",
       "      <td>0.002091</td>\n",
       "      <td>0.004770</td>\n",
       "      <td>0.004466</td>\n",
       "      <td>0.003933</td>\n",
       "      <td>0.004288</td>\n",
       "      <td>0.004114</td>\n",
       "      <td>...</td>\n",
       "      <td>0.011471</td>\n",
       "      <td>0.003598</td>\n",
       "      <td>0.008374</td>\n",
       "      <td>0.007067</td>\n",
       "      <td>0.007046</td>\n",
       "      <td>0.006393</td>\n",
       "      <td>0.006393</td>\n",
       "      <td>0.003761</td>\n",
       "      <td>0.065445</td>\n",
       "      <td>0.011551</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>公共管理和社会组织</th>\n",
       "      <td>0.000575</td>\n",
       "      <td>0.000483</td>\n",
       "      <td>0.000658</td>\n",
       "      <td>0.000808</td>\n",
       "      <td>0.000323</td>\n",
       "      <td>0.000975</td>\n",
       "      <td>0.000779</td>\n",
       "      <td>0.000758</td>\n",
       "      <td>0.000894</td>\n",
       "      <td>0.000682</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000881</td>\n",
       "      <td>0.001601</td>\n",
       "      <td>0.002107</td>\n",
       "      <td>0.001538</td>\n",
       "      <td>0.001306</td>\n",
       "      <td>0.001051</td>\n",
       "      <td>0.002029</td>\n",
       "      <td>0.000873</td>\n",
       "      <td>0.001356</td>\n",
       "      <td>0.027677</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>40 rows × 40 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                农林牧渔       采矿业      农副食品      食品饮料        烟草      纺织服装  \\\n",
       "农林牧渔        0.241885  0.019181  0.773409  0.450204  0.103607  0.274208   \n",
       "采矿业         0.045041  0.217345  0.042582  0.051428  0.020659  0.080045   \n",
       "农副食品        0.121876  0.009395  0.246532  0.274182  0.015288  0.069469   \n",
       "食品饮料        0.006820  0.007404  0.030886  0.139843  0.009087  0.011593   \n",
       "烟草          0.001863  0.004937  0.002697  0.003370  0.141276  0.005079   \n",
       "纺织服装        0.005855  0.018011  0.012057  0.017986  0.014435  0.724236   \n",
       "木材家具        0.002042  0.014820  0.002541  0.005196  0.004614  0.006894   \n",
       "造纸印刷        0.006404  0.011920  0.015086  0.041296  0.061422  0.026271   \n",
       "文体工美        0.001962  0.002512  0.002412  0.004308  0.001377  0.004088   \n",
       "石油化工        0.132957  0.125797  0.104480  0.107186  0.048457  0.189220   \n",
       "医药制品        0.007727  0.001297  0.005764  0.005096  0.001113  0.002934   \n",
       "化学纤维        0.000960  0.002022  0.001491  0.002305  0.011541  0.123438   \n",
       "橡胶塑料        0.017015  0.017048  0.021906  0.039984  0.011826  0.048037   \n",
       "非金属制品       0.004005  0.014549  0.004869  0.019424  0.003359  0.007898   \n",
       "黑色金属冶炼压延    0.006253  0.043999  0.007209  0.011218  0.004266  0.013102   \n",
       "有色金属冶炼压延    0.008793  0.027293  0.010337  0.015269  0.006464  0.018530   \n",
       "金属制品        0.006717  0.040426  0.008783  0.019002  0.007039  0.017717   \n",
       "通用设备        0.006840  0.029295  0.008280  0.010507  0.004539  0.015442   \n",
       "专用设备        0.012967  0.039772  0.009642  0.008897  0.003998  0.011060   \n",
       "汽车及零部件制造    0.009101  0.016074  0.012717  0.016299  0.006485  0.019598   \n",
       "其他交通设备      0.003052  0.002435  0.003045  0.002936  0.001156  0.003621   \n",
       "电气机械        0.007497  0.022919  0.010116  0.013549  0.006140  0.016729   \n",
       "计算机通信设备     0.011214  0.026206  0.015247  0.022018  0.009413  0.024020   \n",
       "其他制造业       0.005136  0.018824  0.007057  0.010567  0.007058  0.015127   \n",
       "水电燃         0.034447  0.111425  0.042796  0.051538  0.020518  0.076678   \n",
       "建筑业         0.001459  0.001798  0.001641  0.001927  0.001007  0.002369   \n",
       "批发零售        0.056604  0.059064  0.125951  0.136548  0.077945  0.164672   \n",
       "交通运输        0.051081  0.058916  0.084712  0.092791  0.042968  0.135807   \n",
       "餐饮住宿        0.007905  0.014112  0.012447  0.020352  0.010913  0.019010   \n",
       "软件和信息技术服务业  0.009918  0.015216  0.014273  0.020035  0.008242  0.024613   \n",
       "金融          0.036182  0.079303  0.045665  0.054780  0.023080  0.068127   \n",
       "房地产         0.010839  0.018231  0.019471  0.026528  0.012030  0.029033   \n",
       "租赁和商务服务     0.025333  0.063393  0.047930  0.106314  0.034747  0.083188   \n",
       "科学技术研究      0.011954  0.016763  0.010325  0.011370  0.005084  0.012856   \n",
       "水利生态设施管理    0.002551  0.002705  0.002462  0.003055  0.001846  0.004195   \n",
       "居民服务其他服务    0.004078  0.009061  0.005699  0.009500  0.004040  0.010050   \n",
       "教育          0.000481  0.000787  0.000675  0.000856  0.000463  0.001015   \n",
       "卫生社会        0.000428  0.001229  0.000555  0.000620  0.000346  0.001108   \n",
       "文化体育娱乐      0.001318  0.003535  0.002226  0.003702  0.002091  0.004770   \n",
       "公共管理和社会组织   0.000575  0.000483  0.000658  0.000808  0.000323  0.000975   \n",
       "\n",
       "                木材家具      造纸印刷      文体工美      石油化工  ...        金融       房地产  \\\n",
       "农林牧渔        0.250329  0.142308  0.103755  0.055818  ...  0.021802  0.013362   \n",
       "采矿业         0.096941  0.116652  0.147918  0.422804  ...  0.014902  0.013346   \n",
       "农副食品        0.037100  0.025494  0.026787  0.038073  ...  0.012855  0.007125   \n",
       "食品饮料        0.012089  0.011394  0.012413  0.019193  ...  0.008887  0.006784   \n",
       "烟草          0.007233  0.007333  0.007899  0.008114  ...  0.002918  0.003511   \n",
       "纺织服装        0.087599  0.027334  0.159045  0.021682  ...  0.015285  0.010221   \n",
       "木材家具        0.449775  0.024696  0.063346  0.008981  ...  0.002706  0.002575   \n",
       "造纸印刷        0.031272  0.442237  0.106164  0.018890  ...  0.027665  0.016830   \n",
       "文体工美        0.005260  0.005617  0.083719  0.003395  ...  0.011306  0.005290   \n",
       "石油化工        0.224924  0.253721  0.252925  0.510054  ...  0.029438  0.022053   \n",
       "医药制品        0.002653  0.006351  0.002092  0.003500  ...  0.000681  0.000387   \n",
       "化学纤维        0.008681  0.005464  0.031997  0.003920  ...  0.001518  0.001033   \n",
       "橡胶塑料        0.043509  0.057094  0.097133  0.039041  ...  0.005985  0.004765   \n",
       "非金属制品       0.020926  0.010279  0.019717  0.019060  ...  0.002824  0.004665   \n",
       "黑色金属冶炼压延    0.038499  0.016993  0.041348  0.024610  ...  0.004368  0.005533   \n",
       "有色金属冶炼压延    0.033678  0.033727  0.235019  0.038819  ...  0.008362  0.006499   \n",
       "金属制品        0.052019  0.020755  0.043070  0.026018  ...  0.006412  0.007387   \n",
       "通用设备        0.021561  0.017300  0.021514  0.026479  ...  0.003865  0.003095   \n",
       "专用设备        0.014135  0.019658  0.015260  0.021869  ...  0.002955  0.001775   \n",
       "汽车及零部件制造    0.017972  0.015472  0.020773  0.017591  ...  0.009313  0.007424   \n",
       "其他交通设备      0.003614  0.003462  0.003432  0.003115  ...  0.000946  0.000644   \n",
       "电气机械        0.019085  0.021008  0.032566  0.022848  ...  0.006902  0.006011   \n",
       "计算机通信设备     0.025247  0.039653  0.070952  0.027319  ...  0.019040  0.012801   \n",
       "其他制造业       0.016336  0.087110  0.029495  0.019896  ...  0.005288  0.005704   \n",
       "水电燃         0.090678  0.094627  0.093862  0.142123  ...  0.018749  0.019694   \n",
       "建筑业         0.002651  0.002224  0.002223  0.002300  ...  0.004060  0.015337   \n",
       "批发零售        0.186390  0.148240  0.146877  0.100743  ...  0.025894  0.019210   \n",
       "交通运输        0.115944  0.095041  0.116029  0.102967  ...  0.034523  0.022600   \n",
       "餐饮住宿        0.019508  0.020172  0.020644  0.017988  ...  0.033515  0.013895   \n",
       "软件和信息技术服务业  0.021469  0.021222  0.032221  0.020570  ...  0.053585  0.021706   \n",
       "金融          0.068918  0.077486  0.075572  0.079815  ...  0.106629  0.145065   \n",
       "房地产         0.030558  0.027265  0.030293  0.023283  ...  0.085451  0.062942   \n",
       "租赁和商务服务     0.073911  0.071838  0.109449  0.072894  ...  0.099138  0.093230   \n",
       "科学技术研究      0.015251  0.015691  0.012186  0.019133  ...  0.003298  0.003998   \n",
       "水利生态设施管理    0.003177  0.006375  0.003123  0.003302  ...  0.002750  0.001442   \n",
       "居民服务其他服务    0.011463  0.011878  0.010433  0.010338  ...  0.006389  0.004468   \n",
       "教育          0.001136  0.000885  0.000961  0.000890  ...  0.003108  0.000833   \n",
       "卫生社会        0.001168  0.001298  0.001047  0.001989  ...  0.000519  0.000192   \n",
       "文化体育娱乐      0.004466  0.003933  0.004288  0.004114  ...  0.011471  0.003598   \n",
       "公共管理和社会组织   0.000779  0.000758  0.000894  0.000682  ...  0.000881  0.001601   \n",
       "\n",
       "             租赁和商务服务    科学技术研究  水利生态设施管理  居民服务其他服务        教育      卫生社会  \\\n",
       "农林牧渔        0.069655  0.054107  0.144744  0.041970  0.034315  0.110722   \n",
       "采矿业         0.055617  0.073905  0.075130  0.054754  0.026494  0.038264   \n",
       "农副食品        0.039962  0.027903  0.036531  0.022387  0.028723  0.031129   \n",
       "食品饮料        0.019886  0.023030  0.019039  0.026592  0.014566  0.024334   \n",
       "烟草          0.009286  0.006971  0.009806  0.007798  0.007250  0.004023   \n",
       "纺织服装        0.048206  0.026386  0.036252  0.025578  0.012519  0.050346   \n",
       "木材家具        0.007278  0.005853  0.008260  0.006850  0.003477  0.003088   \n",
       "造纸印刷        0.116046  0.032536  0.018276  0.015853  0.030737  0.020719   \n",
       "文体工美        0.015137  0.007048  0.012255  0.007315  0.011447  0.005289   \n",
       "石油化工        0.115075  0.170575  0.173134  0.121014  0.057001  0.075443   \n",
       "医药制品        0.001772  0.008335  0.002966  0.001823  0.002529  0.405536   \n",
       "化学纤维        0.004721  0.004203  0.003978  0.002848  0.001551  0.005473   \n",
       "橡胶塑料        0.025003  0.024562  0.037548  0.026475  0.007401  0.015628   \n",
       "非金属制品       0.009781  0.016353  0.019330  0.009282  0.006910  0.010551   \n",
       "黑色金属冶炼压延    0.022546  0.024614  0.019041  0.016634  0.006014  0.011493   \n",
       "有色金属冶炼压延    0.036673  0.043648  0.029633  0.031403  0.010093  0.016096   \n",
       "金属制品        0.047508  0.050592  0.026595  0.026122  0.007590  0.012588   \n",
       "通用设备        0.014537  0.016627  0.015327  0.013148  0.005779  0.012057   \n",
       "专用设备        0.008807  0.010018  0.010353  0.007659  0.003115  0.042202   \n",
       "汽车及零部件制造    0.073391  0.026058  0.040595  0.052449  0.007864  0.015260   \n",
       "其他交通设备      0.003321  0.003897  0.004935  0.020407  0.001511  0.003099   \n",
       "电气机械        0.035792  0.054419  0.034727  0.032800  0.007584  0.015166   \n",
       "计算机通信设备     0.084069  0.145227  0.059461  0.106928  0.018627  0.030181   \n",
       "其他制造业       0.028205  0.078668  0.025878  0.022371  0.016826  0.009556   \n",
       "水电燃         0.049456  0.058508  0.084192  0.054730  0.028600  0.045425   \n",
       "建筑业         0.003433  0.003538  0.011932  0.004586  0.008059  0.003983   \n",
       "批发零售        0.100044  0.088805  0.082971  0.071634  0.035685  0.130369   \n",
       "交通运输        0.126578  0.099543  0.094065  0.066582  0.047557  0.092010   \n",
       "餐饮住宿        0.067807  0.056202  0.026007  0.021908  0.030921  0.020881   \n",
       "软件和信息技术服务业  0.042176  0.047325  0.038407  0.022765  0.034420  0.042291   \n",
       "金融          0.137232  0.087322  0.094743  0.060619  0.054344  0.058208   \n",
       "房地产         0.100790  0.049268  0.041229  0.126430  0.058071  0.041354   \n",
       "租赁和商务服务     0.178609  0.109940  0.083064  0.069121  0.037494  0.074543   \n",
       "科学技术研究      0.007965  0.139500  0.011762  0.006679  0.006428  0.009318   \n",
       "水利生态设施管理    0.006634  0.004141  0.034616  0.003358  0.002095  0.002852   \n",
       "居民服务其他服务    0.016368  0.021683  0.047048  0.023753  0.015468  0.014999   \n",
       "教育          0.001599  0.001742  0.001529  0.001199  0.015074  0.002484   \n",
       "卫生社会        0.000687  0.000879  0.001247  0.000746  0.000688  0.006455   \n",
       "文化体育娱乐      0.008374  0.007067  0.007046  0.006393  0.006393  0.003761   \n",
       "公共管理和社会组织   0.002107  0.001538  0.001306  0.001051  0.002029  0.000873   \n",
       "\n",
       "              文化体育娱乐  公共管理和社会组织  \n",
       "农林牧渔        0.069450   0.042786  \n",
       "采矿业         0.036459   0.029903  \n",
       "农副食品        0.038207   0.023113  \n",
       "食品饮料        0.065970   0.017361  \n",
       "烟草          0.016757   0.004910  \n",
       "纺织服装        0.067192   0.064254  \n",
       "木材家具        0.007236   0.010438  \n",
       "造纸印刷        0.075012   0.038446  \n",
       "文体工美        0.014439   0.012525  \n",
       "石油化工        0.075199   0.057140  \n",
       "医药制品        0.001645   0.002457  \n",
       "化学纤维        0.005760   0.005209  \n",
       "橡胶塑料        0.015852   0.011169  \n",
       "非金属制品       0.006475   0.006791  \n",
       "黑色金属冶炼压延    0.008395   0.008573  \n",
       "有色金属冶炼压延    0.014847   0.014260  \n",
       "金属制品        0.011366   0.010538  \n",
       "通用设备        0.007070   0.006252  \n",
       "专用设备        0.004747   0.004042  \n",
       "汽车及零部件制造    0.014890   0.016833  \n",
       "其他交通设备      0.002411   0.002869  \n",
       "电气机械        0.012828   0.014435  \n",
       "计算机通信设备     0.033362   0.037911  \n",
       "其他制造业       0.017496   0.009247  \n",
       "水电燃         0.047374   0.038195  \n",
       "建筑业         0.009043   0.015093  \n",
       "批发零售        0.077797   0.052204  \n",
       "交通运输        0.080413   0.072535  \n",
       "餐饮住宿        0.046830   0.058326  \n",
       "软件和信息技术服务业  0.038780   0.093501  \n",
       "金融          0.069720   0.061699  \n",
       "房地产         0.068445   0.047739  \n",
       "租赁和商务服务     0.096072   0.072801  \n",
       "科学技术研究      0.005822   0.005908  \n",
       "水利生态设施管理    0.004227   0.003780  \n",
       "居民服务其他服务    0.020343   0.027215  \n",
       "教育          0.002313   0.010470  \n",
       "卫生社会        0.000982   0.003677  \n",
       "文化体育娱乐      0.065445   0.011551  \n",
       "公共管理和社会组织   0.001356   0.027677  \n",
       "\n",
       "[40 rows x 40 columns]"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "io20.B"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "id": "69678058",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=通用设备<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "通用设备",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "通用设备",
         "offsetgroup": "通用设备",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "j+BGyhZJmz+LGHYYk/7CPxmMEYlCy4o/+3PRkPEohT9pq5LIPsiSPxHlC1pIwJg/mkNSCyWTgz+VtyOcFryYP63boPZbO3E/FHgnnx7bwD9IowIn28BdP27eOCnMe2w/RnpRu18FqD+NX3glyXOdPwg8MIDwocY/QDOID+z4yz9QbXAi+rW5P1ga+FEN+9I/rKsCtRg8nD851sVtNICnP3JQwkzbv4I/npj1Yignvj82yY/4FWvEP9EINq5/16c/2gHXFTPCuz9e1y/YDdtmP61sH/KWq8E/EXAIVWr2vD/Zl2w82GKXP5dXrrfNVKA/+YOB597DtT/nilJCsKqePxdhinJp/LY/7upVZHRAkj+2oPfGEABsP8y209aIYIw/wXCuYYbGUz8VjErqBDRhPwN9Ik+Srnk/Kqc9JefETj8=",
          "dtype": "f8"
         },
         "yaxis": "y"
        },
        {
         "alignmentgroup": "True",
         "hovertemplate": "variable=专用设备<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "专用设备",
         "marker": {
          "color": "#EF553B",
          "pattern": {
           "shape": ""
          }
         },
         "name": "专用设备",
         "offsetgroup": "专用设备",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "nUzcKoiBnj9RE30+yoi/P+OL9nghHY4/QNtq1hnfhz9YVMTpJFuNPxbfUPhsHZw/xLDDmPT3gj8OnglNEkuaP0g17PfEOnU/YOY7+IkDwD/hDWlU4GRrP/g2/dmPFHE/3Siy1lBqrz8EAMeePZehP5FkVu9wO8I/Z5sb0xOWwj8i+rX103+2P06c3O9QFMQ/t7jGZ7J/xD9a2T7kLVevP/q0iv7QzIM/2LeTiPAvuj8qNuZ1xCHJP8zuycNCrak/jxzpDIy8uD+XAz3UtmFkP51LcVXZd8E/6gWf5uRFvj8xsfm4NlScP7smpDUGnaA/j/0sliL5tj+zKOyi6IGfP0MDsWzmkLg/tCJqos9HmT89mBQfn5BtP4kHlE25wos/C5krg2qDUz+dL/ZefNFeP/dZZaa0/nY/uRluwOeHUT8=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "group",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 完全消耗系数\n",
    "px.bar(io20.B[['通用设备','专用设备']], barmode='group')"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "c9afd863",
   "metadata": {},
   "source": [
    "# 影响力系数\n",
    "影响力系数（Influence Coefficient）是衡量某个部门对国民经济其他部门拉动作用大小的重要指标，用于判断该部门的发展对整体经济的辐射带动能力。其核心思想是：通过计算某一部门增加单位最终需求时，对国民经济各部门总产出的平均影响程度，并与所有部门的平均影响程度进行对比，从而判断该部门的 “拉动效应” 强弱。"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "04998d75",
   "metadata": {},
   "source": [
    "## 计算逻辑\n",
    "- 第一步，计算分子：各部门的“总拉动量”：对L矩阵的每一列求和\n",
    "- 第二步，计算分母：所有部门的“平价拉动量”，L所有元素求和，除以部门数得到平均值。\n",
    "影响力系数 = 列昂惕夫逆矩阵第j列之和 / 列昂惕夫逆矩阵所有元素平均值"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "0da3aa5f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "农林牧渔          0.702328\n",
       "采矿业           0.797118\n",
       "农副食品          1.010870\n",
       "食品饮料          1.031317\n",
       "烟草            0.637208\n",
       "纺织服装          1.225737\n",
       "木材家具          1.153320\n",
       "造纸印刷          1.095848\n",
       "文体工美          1.197202\n",
       "石油化工          1.093728\n",
       "医药制品          1.014902\n",
       "化学纤维          1.229579\n",
       "橡胶塑料          1.160474\n",
       "非金属制品         1.027198\n",
       "黑色金属冶炼压延      1.092452\n",
       "有色金属冶炼压延      1.140574\n",
       "金属制品          1.160789\n",
       "通用设备          1.222493\n",
       "专用设备          1.195522\n",
       "汽车及零部件制造      1.263305\n",
       "其他交通设备        1.258705\n",
       "电气机械          1.295840\n",
       "计算机通信设备       1.441242\n",
       "其他制造业         0.939705\n",
       "水电燃           1.007709\n",
       "建筑业           1.121664\n",
       "批发零售          0.678782\n",
       "交通运输          0.953250\n",
       "餐饮住宿          0.951241\n",
       "软件和信息技术服务业    0.861515\n",
       "金融            0.624799\n",
       "房地产           0.582003\n",
       "租赁和商务服务       0.998311\n",
       "科学技术研究        0.987536\n",
       "水利生态设施管理      0.919245\n",
       "居民服务其他服务      0.816236\n",
       "教育            0.623733\n",
       "卫生社会          0.916730\n",
       "文化体育娱乐        0.822065\n",
       "公共管理和社会组织     0.747726\n",
       "dtype: float64"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "io20.F"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "id": "b206fd40",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "hovertemplate": "variable=0<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "0",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "0",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "MxXikXh55j+WsaGb/YHpP80eaAWGLPA/+vAsQUaA8D92/BcIAmTkP1b0h2aenPM/3CkdrP9z8j8vMZbpl4jxP+1Ky0i9J/M/BoNr7uh/8T/jUSrhCT3wP/uSjQdbrPM/nbtdL02R8j8HRIgrZ2/wP1kyx/KuevE/vK/Khco/8j+b54h8l5LyP0Bs6dFUj/M/TmA6rdsg8z/0+L1Nfzb0P6T8pNqnI/Q/CJRNucK79D808nnFUw/3P+BnXDgQEu4/ZyjueJMf8D/Um1HzVfLxP5ChYweVuOU/Gy/dJAaB7j+kqDP3kHDuPxpuwOeHkes/JVryeFr+4z9+kGXBxJ/iP/aVB+kp8u8/zOzzGOWZ7z9fXoB9dGrtP+AruvWaHuo/c/ON6J714z/2Yign2lXtP671RUJbTuo//82LE1/t5z8=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "relative",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "px.bar(io20.F)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "1b81a3c3",
   "metadata": {},
   "source": [
    "# 感应度系数"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "d20c3cad",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "农林牧渔          1.903963\n",
       "采矿业           2.180177\n",
       "农副食品          0.993233\n",
       "食品饮料          0.672516\n",
       "烟草            0.540522\n",
       "纺织服装          1.080715\n",
       "木材家具          0.676723\n",
       "造纸印刷          0.975382\n",
       "文体工美          0.476973\n",
       "石油化工          2.766862\n",
       "医药制品          0.644071\n",
       "化学纤维          0.614621\n",
       "橡胶塑料          0.940745\n",
       "非金属制品         0.783521\n",
       "黑色金属冶炼压延      1.097033\n",
       "有色金属冶炼压延      1.552273\n",
       "金属制品          0.902334\n",
       "通用设备          0.878049\n",
       "专用设备          0.652047\n",
       "汽车及零部件制造      0.899156\n",
       "其他交通设备        0.504978\n",
       "电气机械          1.004561\n",
       "计算机通信设备       1.680108\n",
       "其他制造业         0.850070\n",
       "水电燃           1.665185\n",
       "建筑业           0.434399\n",
       "批发零售          1.895316\n",
       "交通运输          1.736537\n",
       "餐饮住宿          0.720483\n",
       "软件和信息技术服务业    0.903217\n",
       "金融            1.552304\n",
       "房地产           0.976022\n",
       "租赁和商务服务       1.592795\n",
       "科学技术研究        0.644834\n",
       "水利生态设施管理      0.426148\n",
       "居民服务其他服务      0.559413\n",
       "教育            0.390096\n",
       "卫生社会          0.383411\n",
       "文化体育娱乐        0.461663\n",
       "公共管理和社会组织     0.387545\n",
       "dtype: float64"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "io20.E"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "id": "eca3929e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "hovertemplate": "variable=0<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "0",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "0",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农林牧渔",
          "采矿业",
          "农副食品",
          "食品饮料",
          "烟草",
          "纺织服装",
          "木材家具",
          "造纸印刷",
          "文体工美",
          "石油化工",
          "医药制品",
          "化学纤维",
          "橡胶塑料",
          "非金属制品",
          "黑色金属冶炼压延",
          "有色金属冶炼压延",
          "金属制品",
          "通用设备",
          "专用设备",
          "汽车及零部件制造",
          "其他交通设备",
          "电气机械",
          "计算机通信设备",
          "其他制造业",
          "水电燃",
          "建筑业",
          "批发零售",
          "交通运输",
          "餐饮住宿",
          "软件和信息技术服务业",
          "金融",
          "房地产",
          "租赁和商务服务",
          "科学技术研究",
          "水利生态设施管理",
          "居民服务其他服务",
          "教育",
          "卫生社会",
          "文化体育娱乐",
          "公共管理和社会组织"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "bLQc6KF2/j9f7pOjAHEBQODaiZKQyO8/8SxBRkCF5T+mlxjL9EvhPwq/1M+bSvE/qG4u/ran5T8ibeNPVDbvP+7MBMO5ht4/eVxUi4giBkAdqinJOpzkPwPqzaj5quM/QwQcQpUa7j+9VdehmhLpP9EfmnlyjfE/wmuXNhzW+D8iNIKN69/sP9kiaTf6GOw/pI6Oq5Hd5D/TEcDN4sXsPzViZp/HKOA/lWQdjq4S8D+t9xvtuOH6P2vxKQDGM+s/26LMBpmk+j8QkZp2Mc3bP1teud42U/4/B7R0BdvI+z/yXUpdMg7nP5MehlYn5+w/IjMXuDzW+D/8pUV9kjvvP5W3I5wWfPk/5Smr6Xqi5D8pX9BCAkbbP8ehfhe25uE/BDqTNlX32D9VTntKzonYP+V8sffii90/y5wui4nN2D8=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "relative",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "px.bar(io20.E)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "961f1e70",
   "metadata": {},
   "source": [
    "## 计算不同最终需求列，对总产出和投入的拉动"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "1fa36f2d",
   "metadata": {},
   "source": [
    "- 最终消费支出\n",
    " - 居民消费"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "id": "886ccc67",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Index(['中间使用合计', '农村居民消费支出', '城镇居民消费支出', '居民消费支出', '政府消费支出', '消费支出合计',\n",
       "       '固定资本形成总额', '存货变动', '资本形成总额', '出口', '最终使用合计', '进口', '总产出'],\n",
       "      dtype='object')"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\n",
    "value_add_items = ['劳动者报酬', '生产税净额', '固定资产折旧', '营业盈余', '增加值合计', '总投入']\n",
    "q2_cols = io20.q2.columns\n",
    "q2_cols"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "id": "948ff8ad",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "hovertemplate": "variable=不同最终需求的拉动<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "不同最终需求的拉动",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "不同最终需求的拉动",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农村居民消费支出",
          "城镇居民消费支出",
          "居民消费支出",
          "固定资本形成总额",
          "资本形成总额",
          "出口",
          "最终使用合计"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "1I08lpTAAkC64pAe7dICQFkEqlkGzwJAASzQJjRBCEDI8kFLRigIQKGyyfbNeQlAwdUlxYmjBUA=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "relative",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "se = io20.PIC_all()\n",
    "px.bar(se)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "717084ec",
   "metadata": {},
   "outputs": [],
   "source": [
    "io20.L"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "1d394757",
   "metadata": {},
   "outputs": [],
   "source": [
    "io20.q2['总产出']"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f274020b",
   "metadata": {},
   "source": [
    "## APL系数\n",
    "APL（Average Propagation Length）系数，Erik Dietzenbacher 等人在 2005\n",
    "年提出的，它反映了某部门发生一个外生变化后对其他部门的产出造成影响要经过的平均轮次，\n",
    "具体可分为后向APL和前向APL也是平均传递长度，用于衡量某行业冲击对其他行业产出影响的平均轮次，\n",
    "本质是通过矩阵分解量化间接影响的传递路径长度。以下是具体计算方法及理论逻辑：\n",
    "$$APL_{ij}=\\frac{\\sum_{k=1}^\\infty{k \\cdot (A^k)_{ij}}}{l_{ij}}$$\n",
    "- 前向APL，反映了𝑖行业对𝑗行业的前向成本推动的平均轮次。\n",
    "- 后向APL，反映了𝑗行业对𝑖行业的后向需求拉动的平均轮次。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "e0473de0",
   "metadata": {},
   "outputs": [],
   "source": [
    "apl = io20.calculate_apl()\n",
    "apl.round(6)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "0026c9a2",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 从拉动角度看APL 列展开\n",
    "px.bar(apl[['房地产','金融']], barmode='group')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ea5e9201",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 从推动角度看APL > 行展开\n",
    "px.bar(apl.loc[['通用设备','文化体育娱乐'],:].T, barmode='group')"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "eda8e386",
   "metadata": {},
   "source": [
    "## 计算拉动"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "38b183b8",
   "metadata": {},
   "source": [
    "- 增加值系数矩阵（N行N列，对角线矩阵） × 列昂惕夫逆矩阵（N行N列） × 最终使用向量（N行1列，最终使用-进口）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "63cf4c5d",
   "metadata": {},
   "outputs": [],
   "source": [
    "cal = io20.income_coef('增加值合计').dot(io20.L).dot(io20.q2.最终使用合计 - io20.q2.进口)\n",
    "true_value = io20.q3.loc['增加值合计',:]\n",
    "df = pd.DataFrame({'增加值真实-第三象限':true_value, '增加值，由最终使用拉动计算':cal})\n",
    "df.round(1)\n",
    "# 验证 列昂惕夫逆矩阵计算过程没问题，这个计算拉动没问题"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e94f6204",
   "metadata": {},
   "source": [
    "## 不同需求向量的拉动"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "id": "1c97b9a6",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Index(['中间使用合计', '农村居民消费支出', '城镇居民消费支出', '居民消费支出', '政府消费支出', '消费支出合计',\n",
       "       '固定资本形成总额', '存货变动', '资本形成总额', '出口', '最终使用合计', '进口', '总产出'],\n",
       "      dtype='object')"
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "io20.q2.columns"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "7722e12d",
   "metadata": {},
   "source": [
    "# 对劳动者报酬的拉动"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "958d178b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>农村居民消费支出</th>\n",
       "      <th>城镇居民消费支出</th>\n",
       "      <th>居民消费支出</th>\n",
       "      <th>政府消费支出</th>\n",
       "      <th>消费支出合计</th>\n",
       "      <th>固定资本形成总额</th>\n",
       "      <th>存货变动</th>\n",
       "      <th>资本形成总额</th>\n",
       "      <th>出口</th>\n",
       "      <th>最终使用合计</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>农林牧渔</th>\n",
       "      <td>0.2040</td>\n",
       "      <td>0.1466</td>\n",
       "      <td>0.1588</td>\n",
       "      <td>0.0453</td>\n",
       "      <td>0.1235</td>\n",
       "      <td>0.0265</td>\n",
       "      <td>0.4853</td>\n",
       "      <td>0.0362</td>\n",
       "      <td>0.0563</td>\n",
       "      <td>0.0807</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>采矿业</th>\n",
       "      <td>0.0105</td>\n",
       "      <td>0.0112</td>\n",
       "      <td>0.0111</td>\n",
       "      <td>0.0071</td>\n",
       "      <td>0.0098</td>\n",
       "      <td>0.0249</td>\n",
       "      <td>0.0034</td>\n",
       "      <td>0.0245</td>\n",
       "      <td>0.0243</td>\n",
       "      <td>0.0175</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>农副食品</th>\n",
       "      <td>0.0125</td>\n",
       "      <td>0.0101</td>\n",
       "      <td>0.0106</td>\n",
       "      <td>0.0018</td>\n",
       "      <td>0.0079</td>\n",
       "      <td>0.0011</td>\n",
       "      <td>0.0101</td>\n",
       "      <td>0.0012</td>\n",
       "      <td>0.0027</td>\n",
       "      <td>0.0046</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>食品饮料</th>\n",
       "      <td>0.0097</td>\n",
       "      <td>0.0085</td>\n",
       "      <td>0.0088</td>\n",
       "      <td>0.0018</td>\n",
       "      <td>0.0066</td>\n",
       "      <td>0.0011</td>\n",
       "      <td>0.0020</td>\n",
       "      <td>0.0011</td>\n",
       "      <td>0.0019</td>\n",
       "      <td>0.0038</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>烟草</th>\n",
       "      <td>0.0008</td>\n",
       "      <td>0.0007</td>\n",
       "      <td>0.0007</td>\n",
       "      <td>0.0003</td>\n",
       "      <td>0.0006</td>\n",
       "      <td>0.0004</td>\n",
       "      <td>0.0011</td>\n",
       "      <td>0.0004</td>\n",
       "      <td>0.0005</td>\n",
       "      <td>0.0005</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>纺织服装</th>\n",
       "      <td>0.0070</td>\n",
       "      <td>0.0085</td>\n",
       "      <td>0.0081</td>\n",
       "      <td>0.0047</td>\n",
       "      <td>0.0071</td>\n",
       "      <td>0.0023</td>\n",
       "      <td>-0.0058</td>\n",
       "      <td>0.0022</td>\n",
       "      <td>0.0205</td>\n",
       "      <td>0.0074</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>木材家具</th>\n",
       "      <td>0.0013</td>\n",
       "      <td>0.0013</td>\n",
       "      <td>0.0013</td>\n",
       "      <td>0.0007</td>\n",
       "      <td>0.0011</td>\n",
       "      <td>0.0032</td>\n",
       "      <td>0.0030</td>\n",
       "      <td>0.0032</td>\n",
       "      <td>0.0042</td>\n",
       "      <td>0.0024</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>造纸印刷</th>\n",
       "      <td>0.0025</td>\n",
       "      <td>0.0027</td>\n",
       "      <td>0.0026</td>\n",
       "      <td>0.0032</td>\n",
       "      <td>0.0028</td>\n",
       "      <td>0.0026</td>\n",
       "      <td>-0.0080</td>\n",
       "      <td>0.0023</td>\n",
       "      <td>0.0038</td>\n",
       "      <td>0.0028</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>文体工美</th>\n",
       "      <td>0.0015</td>\n",
       "      <td>0.0019</td>\n",
       "      <td>0.0018</td>\n",
       "      <td>0.0013</td>\n",
       "      <td>0.0016</td>\n",
       "      <td>0.0008</td>\n",
       "      <td>-0.0022</td>\n",
       "      <td>0.0007</td>\n",
       "      <td>0.0046</td>\n",
       "      <td>0.0018</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>石油化工</th>\n",
       "      <td>0.0051</td>\n",
       "      <td>0.0053</td>\n",
       "      <td>0.0053</td>\n",
       "      <td>0.0037</td>\n",
       "      <td>0.0048</td>\n",
       "      <td>0.0073</td>\n",
       "      <td>-0.0112</td>\n",
       "      <td>0.0069</td>\n",
       "      <td>0.0103</td>\n",
       "      <td>0.0064</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>医药制品</th>\n",
       "      <td>0.0050</td>\n",
       "      <td>0.0040</td>\n",
       "      <td>0.0042</td>\n",
       "      <td>0.0081</td>\n",
       "      <td>0.0054</td>\n",
       "      <td>0.0003</td>\n",
       "      <td>0.0000</td>\n",
       "      <td>0.0003</td>\n",
       "      <td>0.0018</td>\n",
       "      <td>0.0030</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>化学纤维</th>\n",
       "      <td>0.0004</td>\n",
       "      <td>0.0004</td>\n",
       "      <td>0.0004</td>\n",
       "      <td>0.0003</td>\n",
       "      <td>0.0004</td>\n",
       "      <td>0.0002</td>\n",
       "      <td>-0.0004</td>\n",
       "      <td>0.0002</td>\n",
       "      <td>0.0013</td>\n",
       "      <td>0.0005</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>橡胶塑料</th>\n",
       "      <td>0.0025</td>\n",
       "      <td>0.0025</td>\n",
       "      <td>0.0025</td>\n",
       "      <td>0.0014</td>\n",
       "      <td>0.0022</td>\n",
       "      <td>0.0039</td>\n",
       "      <td>0.0004</td>\n",
       "      <td>0.0038</td>\n",
       "      <td>0.0085</td>\n",
       "      <td>0.0038</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>非金属制品</th>\n",
       "      <td>0.0013</td>\n",
       "      <td>0.0013</td>\n",
       "      <td>0.0013</td>\n",
       "      <td>0.0009</td>\n",
       "      <td>0.0012</td>\n",
       "      <td>0.0151</td>\n",
       "      <td>0.0049</td>\n",
       "      <td>0.0149</td>\n",
       "      <td>0.0054</td>\n",
       "      <td>0.0069</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>黑色金属冶炼压延</th>\n",
       "      <td>0.0008</td>\n",
       "      <td>0.0009</td>\n",
       "      <td>0.0009</td>\n",
       "      <td>0.0006</td>\n",
       "      <td>0.0008</td>\n",
       "      <td>0.0075</td>\n",
       "      <td>0.0079</td>\n",
       "      <td>0.0076</td>\n",
       "      <td>0.0042</td>\n",
       "      <td>0.0038</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>有色金属冶炼压延</th>\n",
       "      <td>0.0020</td>\n",
       "      <td>0.0021</td>\n",
       "      <td>0.0021</td>\n",
       "      <td>0.0012</td>\n",
       "      <td>0.0018</td>\n",
       "      <td>0.0054</td>\n",
       "      <td>0.0051</td>\n",
       "      <td>0.0054</td>\n",
       "      <td>0.0093</td>\n",
       "      <td>0.0043</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>金属制品</th>\n",
       "      <td>0.0019</td>\n",
       "      <td>0.0021</td>\n",
       "      <td>0.0020</td>\n",
       "      <td>0.0017</td>\n",
       "      <td>0.0019</td>\n",
       "      <td>0.0087</td>\n",
       "      <td>0.0168</td>\n",
       "      <td>0.0089</td>\n",
       "      <td>0.0091</td>\n",
       "      <td>0.0056</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>通用设备</th>\n",
       "      <td>0.0013</td>\n",
       "      <td>0.0013</td>\n",
       "      <td>0.0013</td>\n",
       "      <td>0.0008</td>\n",
       "      <td>0.0012</td>\n",
       "      <td>0.0080</td>\n",
       "      <td>0.0146</td>\n",
       "      <td>0.0081</td>\n",
       "      <td>0.0088</td>\n",
       "      <td>0.0049</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>专用设备</th>\n",
       "      <td>0.0016</td>\n",
       "      <td>0.0015</td>\n",
       "      <td>0.0015</td>\n",
       "      <td>0.0016</td>\n",
       "      <td>0.0016</td>\n",
       "      <td>0.0098</td>\n",
       "      <td>0.0099</td>\n",
       "      <td>0.0098</td>\n",
       "      <td>0.0080</td>\n",
       "      <td>0.0056</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>汽车及零部件制造</th>\n",
       "      <td>0.0030</td>\n",
       "      <td>0.0043</td>\n",
       "      <td>0.0040</td>\n",
       "      <td>0.0010</td>\n",
       "      <td>0.0031</td>\n",
       "      <td>0.0045</td>\n",
       "      <td>0.0151</td>\n",
       "      <td>0.0047</td>\n",
       "      <td>0.0028</td>\n",
       "      <td>0.0036</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>其他交通设备</th>\n",
       "      <td>0.0014</td>\n",
       "      <td>0.0008</td>\n",
       "      <td>0.0010</td>\n",
       "      <td>0.0004</td>\n",
       "      <td>0.0008</td>\n",
       "      <td>0.0024</td>\n",
       "      <td>0.0007</td>\n",
       "      <td>0.0024</td>\n",
       "      <td>0.0027</td>\n",
       "      <td>0.0017</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>电气机械</th>\n",
       "      <td>0.0025</td>\n",
       "      <td>0.0023</td>\n",
       "      <td>0.0024</td>\n",
       "      <td>0.0012</td>\n",
       "      <td>0.0020</td>\n",
       "      <td>0.0058</td>\n",
       "      <td>0.0039</td>\n",
       "      <td>0.0057</td>\n",
       "      <td>0.0116</td>\n",
       "      <td>0.0049</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>计算机通信设备</th>\n",
       "      <td>0.0061</td>\n",
       "      <td>0.0060</td>\n",
       "      <td>0.0060</td>\n",
       "      <td>0.0036</td>\n",
       "      <td>0.0053</td>\n",
       "      <td>0.0109</td>\n",
       "      <td>0.0221</td>\n",
       "      <td>0.0111</td>\n",
       "      <td>0.0447</td>\n",
       "      <td>0.0137</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>其他制造业</th>\n",
       "      <td>0.0021</td>\n",
       "      <td>0.0022</td>\n",
       "      <td>0.0022</td>\n",
       "      <td>0.0023</td>\n",
       "      <td>0.0022</td>\n",
       "      <td>0.0056</td>\n",
       "      <td>-0.0058</td>\n",
       "      <td>0.0053</td>\n",
       "      <td>0.0075</td>\n",
       "      <td>0.0042</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>水电燃</th>\n",
       "      <td>0.0069</td>\n",
       "      <td>0.0087</td>\n",
       "      <td>0.0083</td>\n",
       "      <td>0.0040</td>\n",
       "      <td>0.0070</td>\n",
       "      <td>0.0085</td>\n",
       "      <td>0.0069</td>\n",
       "      <td>0.0085</td>\n",
       "      <td>0.0085</td>\n",
       "      <td>0.0078</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>建筑业</th>\n",
       "      <td>0.0008</td>\n",
       "      <td>0.0009</td>\n",
       "      <td>0.0009</td>\n",
       "      <td>0.0016</td>\n",
       "      <td>0.0011</td>\n",
       "      <td>0.1091</td>\n",
       "      <td>0.0004</td>\n",
       "      <td>0.1068</td>\n",
       "      <td>0.0013</td>\n",
       "      <td>0.0400</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>批发零售</th>\n",
       "      <td>0.0509</td>\n",
       "      <td>0.0478</td>\n",
       "      <td>0.0485</td>\n",
       "      <td>0.0244</td>\n",
       "      <td>0.0410</td>\n",
       "      <td>0.0482</td>\n",
       "      <td>0.0636</td>\n",
       "      <td>0.0486</td>\n",
       "      <td>0.0778</td>\n",
       "      <td>0.0496</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>交通运输</th>\n",
       "      <td>0.0219</td>\n",
       "      <td>0.0216</td>\n",
       "      <td>0.0217</td>\n",
       "      <td>0.0199</td>\n",
       "      <td>0.0211</td>\n",
       "      <td>0.0210</td>\n",
       "      <td>0.0209</td>\n",
       "      <td>0.0210</td>\n",
       "      <td>0.0314</td>\n",
       "      <td>0.0227</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>餐饮住宿</th>\n",
       "      <td>0.0102</td>\n",
       "      <td>0.0143</td>\n",
       "      <td>0.0134</td>\n",
       "      <td>0.0086</td>\n",
       "      <td>0.0119</td>\n",
       "      <td>0.0051</td>\n",
       "      <td>0.0029</td>\n",
       "      <td>0.0050</td>\n",
       "      <td>0.0049</td>\n",
       "      <td>0.0083</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>软件和信息技术服务业</th>\n",
       "      <td>0.0147</td>\n",
       "      <td>0.0147</td>\n",
       "      <td>0.0147</td>\n",
       "      <td>0.0136</td>\n",
       "      <td>0.0144</td>\n",
       "      <td>0.0287</td>\n",
       "      <td>0.0052</td>\n",
       "      <td>0.0282</td>\n",
       "      <td>0.0131</td>\n",
       "      <td>0.0193</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>金融</th>\n",
       "      <td>0.0227</td>\n",
       "      <td>0.0296</td>\n",
       "      <td>0.0281</td>\n",
       "      <td>0.0164</td>\n",
       "      <td>0.0245</td>\n",
       "      <td>0.0172</td>\n",
       "      <td>0.0106</td>\n",
       "      <td>0.0170</td>\n",
       "      <td>0.0163</td>\n",
       "      <td>0.0204</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>房地产</th>\n",
       "      <td>0.0323</td>\n",
       "      <td>0.0361</td>\n",
       "      <td>0.0353</td>\n",
       "      <td>0.0090</td>\n",
       "      <td>0.0271</td>\n",
       "      <td>0.0086</td>\n",
       "      <td>0.0049</td>\n",
       "      <td>0.0085</td>\n",
       "      <td>0.0075</td>\n",
       "      <td>0.0171</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>租赁和商务服务</th>\n",
       "      <td>0.0214</td>\n",
       "      <td>0.0250</td>\n",
       "      <td>0.0242</td>\n",
       "      <td>0.0227</td>\n",
       "      <td>0.0238</td>\n",
       "      <td>0.0244</td>\n",
       "      <td>0.0159</td>\n",
       "      <td>0.0243</td>\n",
       "      <td>0.0313</td>\n",
       "      <td>0.0251</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>科学技术研究</th>\n",
       "      <td>0.0028</td>\n",
       "      <td>0.0028</td>\n",
       "      <td>0.0028</td>\n",
       "      <td>0.0248</td>\n",
       "      <td>0.0096</td>\n",
       "      <td>0.0309</td>\n",
       "      <td>0.0039</td>\n",
       "      <td>0.0303</td>\n",
       "      <td>0.0060</td>\n",
       "      <td>0.0167</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>水利生态设施管理</th>\n",
       "      <td>0.0008</td>\n",
       "      <td>0.0009</td>\n",
       "      <td>0.0009</td>\n",
       "      <td>0.0097</td>\n",
       "      <td>0.0036</td>\n",
       "      <td>0.0006</td>\n",
       "      <td>0.0005</td>\n",
       "      <td>0.0006</td>\n",
       "      <td>0.0007</td>\n",
       "      <td>0.0021</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>居民服务其他服务</th>\n",
       "      <td>0.0175</td>\n",
       "      <td>0.0223</td>\n",
       "      <td>0.0213</td>\n",
       "      <td>0.0095</td>\n",
       "      <td>0.0176</td>\n",
       "      <td>0.0065</td>\n",
       "      <td>0.0038</td>\n",
       "      <td>0.0064</td>\n",
       "      <td>0.0055</td>\n",
       "      <td>0.0116</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>教育</th>\n",
       "      <td>0.0342</td>\n",
       "      <td>0.0333</td>\n",
       "      <td>0.0335</td>\n",
       "      <td>0.0863</td>\n",
       "      <td>0.0499</td>\n",
       "      <td>0.0007</td>\n",
       "      <td>0.0005</td>\n",
       "      <td>0.0007</td>\n",
       "      <td>0.0006</td>\n",
       "      <td>0.0240</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>卫生社会</th>\n",
       "      <td>0.0187</td>\n",
       "      <td>0.0155</td>\n",
       "      <td>0.0162</td>\n",
       "      <td>0.0679</td>\n",
       "      <td>0.0323</td>\n",
       "      <td>0.0005</td>\n",
       "      <td>0.0002</td>\n",
       "      <td>0.0005</td>\n",
       "      <td>0.0005</td>\n",
       "      <td>0.0155</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>文化体育娱乐</th>\n",
       "      <td>0.0044</td>\n",
       "      <td>0.0069</td>\n",
       "      <td>0.0064</td>\n",
       "      <td>0.0111</td>\n",
       "      <td>0.0079</td>\n",
       "      <td>0.0022</td>\n",
       "      <td>0.0011</td>\n",
       "      <td>0.0022</td>\n",
       "      <td>0.0022</td>\n",
       "      <td>0.0049</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>公共管理和社会组织</th>\n",
       "      <td>0.0008</td>\n",
       "      <td>0.0014</td>\n",
       "      <td>0.0013</td>\n",
       "      <td>0.2120</td>\n",
       "      <td>0.0669</td>\n",
       "      <td>0.0004</td>\n",
       "      <td>0.0003</td>\n",
       "      <td>0.0004</td>\n",
       "      <td>0.0009</td>\n",
       "      <td>0.0319</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            农村居民消费支出  城镇居民消费支出  居民消费支出  政府消费支出  消费支出合计  固定资本形成总额    存货变动  \\\n",
       "农林牧渔          0.2040    0.1466  0.1588  0.0453  0.1235    0.0265  0.4853   \n",
       "采矿业           0.0105    0.0112  0.0111  0.0071  0.0098    0.0249  0.0034   \n",
       "农副食品          0.0125    0.0101  0.0106  0.0018  0.0079    0.0011  0.0101   \n",
       "食品饮料          0.0097    0.0085  0.0088  0.0018  0.0066    0.0011  0.0020   \n",
       "烟草            0.0008    0.0007  0.0007  0.0003  0.0006    0.0004  0.0011   \n",
       "纺织服装          0.0070    0.0085  0.0081  0.0047  0.0071    0.0023 -0.0058   \n",
       "木材家具          0.0013    0.0013  0.0013  0.0007  0.0011    0.0032  0.0030   \n",
       "造纸印刷          0.0025    0.0027  0.0026  0.0032  0.0028    0.0026 -0.0080   \n",
       "文体工美          0.0015    0.0019  0.0018  0.0013  0.0016    0.0008 -0.0022   \n",
       "石油化工          0.0051    0.0053  0.0053  0.0037  0.0048    0.0073 -0.0112   \n",
       "医药制品          0.0050    0.0040  0.0042  0.0081  0.0054    0.0003  0.0000   \n",
       "化学纤维          0.0004    0.0004  0.0004  0.0003  0.0004    0.0002 -0.0004   \n",
       "橡胶塑料          0.0025    0.0025  0.0025  0.0014  0.0022    0.0039  0.0004   \n",
       "非金属制品         0.0013    0.0013  0.0013  0.0009  0.0012    0.0151  0.0049   \n",
       "黑色金属冶炼压延      0.0008    0.0009  0.0009  0.0006  0.0008    0.0075  0.0079   \n",
       "有色金属冶炼压延      0.0020    0.0021  0.0021  0.0012  0.0018    0.0054  0.0051   \n",
       "金属制品          0.0019    0.0021  0.0020  0.0017  0.0019    0.0087  0.0168   \n",
       "通用设备          0.0013    0.0013  0.0013  0.0008  0.0012    0.0080  0.0146   \n",
       "专用设备          0.0016    0.0015  0.0015  0.0016  0.0016    0.0098  0.0099   \n",
       "汽车及零部件制造      0.0030    0.0043  0.0040  0.0010  0.0031    0.0045  0.0151   \n",
       "其他交通设备        0.0014    0.0008  0.0010  0.0004  0.0008    0.0024  0.0007   \n",
       "电气机械          0.0025    0.0023  0.0024  0.0012  0.0020    0.0058  0.0039   \n",
       "计算机通信设备       0.0061    0.0060  0.0060  0.0036  0.0053    0.0109  0.0221   \n",
       "其他制造业         0.0021    0.0022  0.0022  0.0023  0.0022    0.0056 -0.0058   \n",
       "水电燃           0.0069    0.0087  0.0083  0.0040  0.0070    0.0085  0.0069   \n",
       "建筑业           0.0008    0.0009  0.0009  0.0016  0.0011    0.1091  0.0004   \n",
       "批发零售          0.0509    0.0478  0.0485  0.0244  0.0410    0.0482  0.0636   \n",
       "交通运输          0.0219    0.0216  0.0217  0.0199  0.0211    0.0210  0.0209   \n",
       "餐饮住宿          0.0102    0.0143  0.0134  0.0086  0.0119    0.0051  0.0029   \n",
       "软件和信息技术服务业    0.0147    0.0147  0.0147  0.0136  0.0144    0.0287  0.0052   \n",
       "金融            0.0227    0.0296  0.0281  0.0164  0.0245    0.0172  0.0106   \n",
       "房地产           0.0323    0.0361  0.0353  0.0090  0.0271    0.0086  0.0049   \n",
       "租赁和商务服务       0.0214    0.0250  0.0242  0.0227  0.0238    0.0244  0.0159   \n",
       "科学技术研究        0.0028    0.0028  0.0028  0.0248  0.0096    0.0309  0.0039   \n",
       "水利生态设施管理      0.0008    0.0009  0.0009  0.0097  0.0036    0.0006  0.0005   \n",
       "居民服务其他服务      0.0175    0.0223  0.0213  0.0095  0.0176    0.0065  0.0038   \n",
       "教育            0.0342    0.0333  0.0335  0.0863  0.0499    0.0007  0.0005   \n",
       "卫生社会          0.0187    0.0155  0.0162  0.0679  0.0323    0.0005  0.0002   \n",
       "文化体育娱乐        0.0044    0.0069  0.0064  0.0111  0.0079    0.0022  0.0011   \n",
       "公共管理和社会组织     0.0008    0.0014  0.0013  0.2120  0.0669    0.0004  0.0003   \n",
       "\n",
       "            资本形成总额      出口  最终使用合计  \n",
       "农林牧渔        0.0362  0.0563  0.0807  \n",
       "采矿业         0.0245  0.0243  0.0175  \n",
       "农副食品        0.0012  0.0027  0.0046  \n",
       "食品饮料        0.0011  0.0019  0.0038  \n",
       "烟草          0.0004  0.0005  0.0005  \n",
       "纺织服装        0.0022  0.0205  0.0074  \n",
       "木材家具        0.0032  0.0042  0.0024  \n",
       "造纸印刷        0.0023  0.0038  0.0028  \n",
       "文体工美        0.0007  0.0046  0.0018  \n",
       "石油化工        0.0069  0.0103  0.0064  \n",
       "医药制品        0.0003  0.0018  0.0030  \n",
       "化学纤维        0.0002  0.0013  0.0005  \n",
       "橡胶塑料        0.0038  0.0085  0.0038  \n",
       "非金属制品       0.0149  0.0054  0.0069  \n",
       "黑色金属冶炼压延    0.0076  0.0042  0.0038  \n",
       "有色金属冶炼压延    0.0054  0.0093  0.0043  \n",
       "金属制品        0.0089  0.0091  0.0056  \n",
       "通用设备        0.0081  0.0088  0.0049  \n",
       "专用设备        0.0098  0.0080  0.0056  \n",
       "汽车及零部件制造    0.0047  0.0028  0.0036  \n",
       "其他交通设备      0.0024  0.0027  0.0017  \n",
       "电气机械        0.0057  0.0116  0.0049  \n",
       "计算机通信设备     0.0111  0.0447  0.0137  \n",
       "其他制造业       0.0053  0.0075  0.0042  \n",
       "水电燃         0.0085  0.0085  0.0078  \n",
       "建筑业         0.1068  0.0013  0.0400  \n",
       "批发零售        0.0486  0.0778  0.0496  \n",
       "交通运输        0.0210  0.0314  0.0227  \n",
       "餐饮住宿        0.0050  0.0049  0.0083  \n",
       "软件和信息技术服务业  0.0282  0.0131  0.0193  \n",
       "金融          0.0170  0.0163  0.0204  \n",
       "房地产         0.0085  0.0075  0.0171  \n",
       "租赁和商务服务     0.0243  0.0313  0.0251  \n",
       "科学技术研究      0.0303  0.0060  0.0167  \n",
       "水利生态设施管理    0.0006  0.0007  0.0021  \n",
       "居民服务其他服务    0.0064  0.0055  0.0116  \n",
       "教育          0.0007  0.0006  0.0240  \n",
       "卫生社会        0.0005  0.0005  0.0155  \n",
       "文化体育娱乐      0.0022  0.0022  0.0049  \n",
       "公共管理和社会组织   0.0004  0.0009  0.0319  "
      ]
     },
     "execution_count": 37,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def ld(name):\n",
    "    dic_ld = {}\n",
    "    for c in ['农村居民消费支出', '城镇居民消费支出', '居民消费支出', '政府消费支出', '消费支出合计',\n",
    "        '固定资本形成总额', '存货变动', '资本形成总额', '出口', '最终使用合计']:\n",
    "        vector = io20.q2[c]\n",
    "        vector_ = vector / vector.sum()\n",
    "        ld = io20.income_coef(name).dot(io20.L).dot(vector_)\n",
    "        dic_ld[c] = ld\n",
    "    df_ld = pd.DataFrame(dic_ld)\n",
    "    df_ld.sum().round(4)\n",
    "    return df_ld\n",
    "df_ld = ld('劳动者报酬')\n",
    "df_ld.round(4)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "id": "ccd6602c",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>农村居民消费支出</th>\n",
       "      <th>城镇居民消费支出</th>\n",
       "      <th>居民消费支出</th>\n",
       "      <th>政府消费支出</th>\n",
       "      <th>消费支出合计</th>\n",
       "      <th>固定资本形成总额</th>\n",
       "      <th>存货变动</th>\n",
       "      <th>资本形成总额</th>\n",
       "      <th>出口</th>\n",
       "      <th>最终使用合计</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0.5478</td>\n",
       "      <td>0.5103</td>\n",
       "      <td>0.5184</td>\n",
       "      <td>0.6365</td>\n",
       "      <td>0.5554</td>\n",
       "      <td>0.4709</td>\n",
       "      <td>0.7145</td>\n",
       "      <td>0.4759</td>\n",
       "      <td>0.4633</td>\n",
       "      <td>0.5114</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   农村居民消费支出  城镇居民消费支出  居民消费支出  政府消费支出  消费支出合计  固定资本形成总额    存货变动  资本形成总额  \\\n",
       "0    0.5478    0.5103  0.5184  0.6365  0.5554    0.4709  0.7145  0.4759   \n",
       "\n",
       "       出口  最终使用合计  \n",
       "0  0.4633  0.5114  "
      ]
     },
     "execution_count": 41,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ad_to_wage = pd.DataFrame(df_ld.round(4).sum()).T\n",
    "ad_to_wage"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ec38900e",
   "metadata": {},
   "source": [
    "## 假如最终需求向量增加了，会拉动不同投入多少？"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "id": "cfcd289f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.plotly.v1+json": {
       "config": {
        "plotlyServerURL": "https://plot.ly"
       },
       "data": [
        {
         "hovertemplate": "variable=0<br>index=%{x}<br>value=%{y}<extra></extra>",
         "legendgroup": "0",
         "marker": {
          "color": "#636efa",
          "pattern": {
           "shape": ""
          }
         },
         "name": "0",
         "orientation": "v",
         "showlegend": true,
         "textposition": "auto",
         "type": "bar",
         "x": [
          "农村居民消费支出",
          "城镇居民消费支出",
          "居民消费支出",
          "政府消费支出",
          "消费支出合计",
          "固定资本形成总额",
          "存货变动",
          "资本形成总额",
          "出口",
          "最终使用合计"
         ],
         "xaxis": "x",
         "y": {
          "bdata": "8KfGSzeJ4T+8dJMYBFbgP2Q730+Nl+A/dEaU9gZf5D+Hp1fKMsThP76fGi/dJN4/WRe30QDe5j+Zu5aQD3reP/d14JwRpd0/ke18PzVe4D8=",
          "dtype": "f8"
         },
         "yaxis": "y"
        }
       ],
       "layout": {
        "barmode": "relative",
        "legend": {
         "title": {
          "text": "variable"
         },
         "tracegroupgap": 0
        },
        "margin": {
         "t": 60
        },
        "template": {
         "data": {
          "bar": [
           {
            "error_x": {
             "color": "#2a3f5f"
            },
            "error_y": {
             "color": "#2a3f5f"
            },
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "bar"
           }
          ],
          "barpolar": [
           {
            "marker": {
             "line": {
              "color": "#E5ECF6",
              "width": 0.5
             },
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "barpolar"
           }
          ],
          "carpet": [
           {
            "aaxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "baxis": {
             "endlinecolor": "#2a3f5f",
             "gridcolor": "white",
             "linecolor": "white",
             "minorgridcolor": "white",
             "startlinecolor": "#2a3f5f"
            },
            "type": "carpet"
           }
          ],
          "choropleth": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "choropleth"
           }
          ],
          "contour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "contour"
           }
          ],
          "contourcarpet": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "contourcarpet"
           }
          ],
          "heatmap": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "heatmap"
           }
          ],
          "histogram": [
           {
            "marker": {
             "pattern": {
              "fillmode": "overlay",
              "size": 10,
              "solidity": 0.2
             }
            },
            "type": "histogram"
           }
          ],
          "histogram2d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2d"
           }
          ],
          "histogram2dcontour": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "histogram2dcontour"
           }
          ],
          "mesh3d": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "type": "mesh3d"
           }
          ],
          "parcoords": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "parcoords"
           }
          ],
          "pie": [
           {
            "automargin": true,
            "type": "pie"
           }
          ],
          "scatter": [
           {
            "fillpattern": {
             "fillmode": "overlay",
             "size": 10,
             "solidity": 0.2
            },
            "type": "scatter"
           }
          ],
          "scatter3d": [
           {
            "line": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatter3d"
           }
          ],
          "scattercarpet": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattercarpet"
           }
          ],
          "scattergeo": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergeo"
           }
          ],
          "scattergl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattergl"
           }
          ],
          "scattermap": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermap"
           }
          ],
          "scattermapbox": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scattermapbox"
           }
          ],
          "scatterpolar": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolar"
           }
          ],
          "scatterpolargl": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterpolargl"
           }
          ],
          "scatterternary": [
           {
            "marker": {
             "colorbar": {
              "outlinewidth": 0,
              "ticks": ""
             }
            },
            "type": "scatterternary"
           }
          ],
          "surface": [
           {
            "colorbar": {
             "outlinewidth": 0,
             "ticks": ""
            },
            "colorscale": [
             [
              0,
              "#0d0887"
             ],
             [
              0.1111111111111111,
              "#46039f"
             ],
             [
              0.2222222222222222,
              "#7201a8"
             ],
             [
              0.3333333333333333,
              "#9c179e"
             ],
             [
              0.4444444444444444,
              "#bd3786"
             ],
             [
              0.5555555555555556,
              "#d8576b"
             ],
             [
              0.6666666666666666,
              "#ed7953"
             ],
             [
              0.7777777777777778,
              "#fb9f3a"
             ],
             [
              0.8888888888888888,
              "#fdca26"
             ],
             [
              1,
              "#f0f921"
             ]
            ],
            "type": "surface"
           }
          ],
          "table": [
           {
            "cells": {
             "fill": {
              "color": "#EBF0F8"
             },
             "line": {
              "color": "white"
             }
            },
            "header": {
             "fill": {
              "color": "#C8D4E3"
             },
             "line": {
              "color": "white"
             }
            },
            "type": "table"
           }
          ]
         },
         "layout": {
          "annotationdefaults": {
           "arrowcolor": "#2a3f5f",
           "arrowhead": 0,
           "arrowwidth": 1
          },
          "autotypenumbers": "strict",
          "coloraxis": {
           "colorbar": {
            "outlinewidth": 0,
            "ticks": ""
           }
          },
          "colorscale": {
           "diverging": [
            [
             0,
             "#8e0152"
            ],
            [
             0.1,
             "#c51b7d"
            ],
            [
             0.2,
             "#de77ae"
            ],
            [
             0.3,
             "#f1b6da"
            ],
            [
             0.4,
             "#fde0ef"
            ],
            [
             0.5,
             "#f7f7f7"
            ],
            [
             0.6,
             "#e6f5d0"
            ],
            [
             0.7,
             "#b8e186"
            ],
            [
             0.8,
             "#7fbc41"
            ],
            [
             0.9,
             "#4d9221"
            ],
            [
             1,
             "#276419"
            ]
           ],
           "sequential": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ],
           "sequentialminus": [
            [
             0,
             "#0d0887"
            ],
            [
             0.1111111111111111,
             "#46039f"
            ],
            [
             0.2222222222222222,
             "#7201a8"
            ],
            [
             0.3333333333333333,
             "#9c179e"
            ],
            [
             0.4444444444444444,
             "#bd3786"
            ],
            [
             0.5555555555555556,
             "#d8576b"
            ],
            [
             0.6666666666666666,
             "#ed7953"
            ],
            [
             0.7777777777777778,
             "#fb9f3a"
            ],
            [
             0.8888888888888888,
             "#fdca26"
            ],
            [
             1,
             "#f0f921"
            ]
           ]
          },
          "colorway": [
           "#636efa",
           "#EF553B",
           "#00cc96",
           "#ab63fa",
           "#FFA15A",
           "#19d3f3",
           "#FF6692",
           "#B6E880",
           "#FF97FF",
           "#FECB52"
          ],
          "font": {
           "color": "#2a3f5f"
          },
          "geo": {
           "bgcolor": "white",
           "lakecolor": "white",
           "landcolor": "#E5ECF6",
           "showlakes": true,
           "showland": true,
           "subunitcolor": "white"
          },
          "hoverlabel": {
           "align": "left"
          },
          "hovermode": "closest",
          "mapbox": {
           "style": "light"
          },
          "paper_bgcolor": "white",
          "plot_bgcolor": "#E5ECF6",
          "polar": {
           "angularaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "radialaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "scene": {
           "xaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "yaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           },
           "zaxis": {
            "backgroundcolor": "#E5ECF6",
            "gridcolor": "white",
            "gridwidth": 2,
            "linecolor": "white",
            "showbackground": true,
            "ticks": "",
            "zerolinecolor": "white"
           }
          },
          "shapedefaults": {
           "line": {
            "color": "#2a3f5f"
           }
          },
          "ternary": {
           "aaxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "baxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           },
           "bgcolor": "#E5ECF6",
           "caxis": {
            "gridcolor": "white",
            "linecolor": "white",
            "ticks": ""
           }
          },
          "title": {
           "x": 0.05
          },
          "xaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          },
          "yaxis": {
           "automargin": true,
           "gridcolor": "white",
           "linecolor": "white",
           "ticks": "",
           "title": {
            "standoff": 15
           },
           "zerolinecolor": "white",
           "zerolinewidth": 2
          }
         }
        },
        "xaxis": {
         "anchor": "y",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "index"
         }
        },
        "yaxis": {
         "anchor": "x",
         "domain": [
          0,
          1
         ],
         "title": {
          "text": "value"
         }
        }
       }
      }
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "px.bar(df_ld.sum().round(4))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "e2b5cd91",
   "metadata": {},
   "outputs": [],
   "source": [
    "px.bar(df_ld.sum().round(4))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "27e923ab",
   "metadata": {},
   "source": [
    "## 对生产税净额的拉动"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "9f4ce1cc",
   "metadata": {},
   "outputs": [],
   "source": [
    "\n",
    "df_tax = ld('生产税净额')\n",
    "df_tax.sum().round(4)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ff26ef55",
   "metadata": {},
   "outputs": [],
   "source": [
    "px.bar(df_tax.sum().round(4))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "aa4bbc54",
   "metadata": {},
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "088b2a2a",
   "metadata": {},
   "outputs": [],
   "source": [
    "df_profits = ld('营业盈余')\n",
    "df_profits.round(6)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "77bcee51",
   "metadata": {},
   "outputs": [],
   "source": [
    "px.bar(df_profits.sum().round(4))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "bb99c9d3",
   "metadata": {},
   "outputs": [],
   "source": [
    "df_zj = ld('固定资产折旧')\n",
    "df = pd.DataFrame(\n",
    "    {'生产税净额':df_tax.sum(), \n",
    "    '营业盈余':df_profits.sum(), \n",
    "    '劳动者报酬': df_ld.sum(),\n",
    "    '固定资产折旧':df_zj.sum()})\n",
    "df.round(4)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "7dee6e9b",
   "metadata": {},
   "outputs": [],
   "source": [
    "px.bar(df)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "1a3afdd6",
   "metadata": {},
   "outputs": [],
   "source": [
    "px.bar(df.loc[['居民消费支出', '政府消费支出', '固定资本形成总额', '出口']].T, barmode='group')\n",
    "# 不同政策向量下，收入法GDP的影响\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "c59849f0",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": ".venv",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
